Socket
Socket
Sign inDemoInstall

github.com/fardream/go-dydx

Package Overview
Dependencies
31
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/fardream/go-dydx

go-dydx is a golang api for dydx.exchange Apis are mapped directly to https://docs.dydx.exchange. No authentication is necessary for public information on dydx.exchange. Api key and stark key are necessary to access the private apis and trade. Api key and stark key can be obtained through the LocalStorage tab of the browser development console. An example with subscriptions


Version published

Readme

Source

go-dydx

Documentation

See the documentation on the package page:

Go Reference

golang client for dydx.exchange, supports:

  • onboarding

    • create user.
    • deterministic recover api key and stark key.
  • private api

    • get user, accounts, positions, orders, withdrawals, fills, funding, and pnl.
    • create, cancel orders and active orders.
    • subscription to account updates.
  • public api

    • get markets, orderbooks, trades, candles, historical fundings.
    • subscription to markets, orderbooks, trades.

Prior Art

This is based on the work from go-numb at here with some go idiomatic modifications.

There is also another version from verichenn here.

Command Line Interface

A command line interface is provided in dydx-cli. To install:

go install github.com/fardream/go-dydx/dyx-cli@latest

A command line interface is provided to replay the orderbook updates dydx-replay-orderbook. To install:

go install github.com/fardream/go-dydx/dyx-replay-orderbook@latest

FAQs

Last updated on 28 Nov 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc