roq-dydx#
Links#
Purpose#
Maintain network connectivity with the Binance exchange
Route exchange updates to connected clients
Route client requests to the relevant exchange accounts
Stream all messages to an event-log
Overview#
Products
Spot |
|
Futures |
✓ |
Options |
Market Data
Reference Data |
✓ |
Market Status |
✓ |
Top of Book |
|
Market by Price (L2) |
✓ |
Market by Order (L3) |
|
Trade Summary |
✓ |
Statistics |
✓ |
Order Management
Create |
|
Modify |
|
Cancel |
|
Cancel All |
|
Auto Cancellation |
Account Management
Positions |
|
Funds |
Conda#
$ mamba install \
--channel https://roq-trading.com/conda/stable \
roq-dydx
$ cp $CONDA_PREFIX/share/roq-dydx/config.toml $CONFIG_FILE_PATH
# Then modify $CONFIG_FILE_PATH to match your specific configuration
$ roq-dydx \
--name "dydx" \
--config_file "$CONFIG_FILE_PATH" \
--client_listen_address "$UNIX_SOCKET_PATH" \
--service_listen_address "$TCP_LISTEN_PORT" \
--flagfile "$FLAG_FILE"
Config#
Flags#
$ roq-dydx --help
|
Max depth. Unbounded is the default. |
|
URI |
|
Time to wait before retrying a rejected request. |
|
Terminate when getting a 403 response code. |
|
Depth limit. This choice has influence on request limits, please refer to exchange documentation. |
|
Time between listen key refresh. |
|
If the cancel request fails, the replacement will not be attempted |
|
URI |
|
Max levels for snapshots. |
|
Conflated depth updates are published at a frequency of either 100ms or 1000ms. |
|
Report individual matches for trade summary? |
|
Subscription limit per web-socket connection |
Environments#
# flagfile
--rest_uri=https://api.dydx.exchange
--ws_uri=wss://api.dydx.exchange/v3/ws
# flagfile
--rest_uri=https://api.stage.dydx.exchange
--ws_uri=wss://api.stage.dydx.exchange
Market Data#
Event |
Stream |
Messages |
Comments |
---|---|---|---|
MarketData |
v3_markets |
||
MarketData |
v3_markets |
||
Unavailable |
|||
MarketData |
v3_orderbook |
||
Unavailable |
|||
MarketData |
v3_trades |
||
MarketData |
v3_markets |
Event |
Stream |
Messages |
Comments |
---|---|---|---|
MarketData |
v3_markets |
||
MarketData |
v3_markets |
||
Unavailable |
|||
MarketData |
v3_orderbook |
||
Unavailable |
|||
Not used |
|||
MarketData |
v3_markets |
Statistics#
Type |
Comments |
---|---|
|
(v3_markets) |
|
(v3_markets) |
|
(v3_markets) |
|
(v3_markets) |
Order Management#
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Streams#
Type |
Comments |
---|---|
WebSocket |
Primary purpose
One connection |
Type |
Comments |
---|---|
REST |
Currently not used One connection |
Comments#