See the documentation on the package page:
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.
This is based on the work from go-numb at here with some go idiomatic modifications.
There is also another version from verichenn here.
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