roq-crypto#
Important
PLACEHOLDER! This gateway is in early development.
Links#
Purpose#
Maintain network connectivity with the Crypto.com 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 |
✓ |
Data center located in: TBD
Conda#
$ mamba install \
--channel https://roq-trading.com/conda/stable \
roq-crypto
$ cp $CONDA_PREFIX/share/roq-crypto/config.toml $CONFIG_FILE_PATH
# Then modify $CONFIG_FILE_PATH to match your specific configuration
$ roq-crypto \
--name "crypto" \
--config_file "$CONFIG_FILE_PATH" \
--client_listen_address "$UNIX_SOCKET_PATH" \
--service_listen_address "$TCP_LISTEN_PORT" \
--flagfile "$FLAG_FILE"
Config#
Flags#
$ roq-crypto --help
Environments#
# flagfile
--rest_uri=https://api.crypto.com
--ws_market_uri=wss://stream.crypto.com/v2/market
--ws_user_uri=wss://stream.crypto.com/v2/user
# flagfile
--rest_uri=https://uat-api.3ona.co
--ws_market_uri=wss://uat-stream.3ona.co/v2/market
--ws_user_uri=wss://uat-stream.3ona.co/v2/user
Market Data#
Event |
Stream |
Messages |
Comments |
---|---|---|---|
MarketData |
ticker |
||
MarketData |
book |
||
MarketData |
trade |
||
MarketData |
ticker |
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Rest |
/v2/public/get-instruments |
||
Statistics#
Type |
Comments |
---|---|
|
(ticker) |
|
(ticker) |
|
(ticker) |
Order Management#
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Order Types#
TBD
Time in Force#
TBD
Position Effect#
TBD
Execution Instructions#
TBD
Account Management#
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Streams#
Type |
Comments |
---|---|
REST |
Primary purpose
|
Type |
Comments |
---|---|
WebSocket |
Primary purpose
Each connection
|
Comments#
The rate-limiter is quite strict
Currently getting errors when subscribing more channels…!?
Maybe need a queue for subscribtions…
Also, there’s a warning about not subscribing during the first second
Market data
Book is full snapshot on each update (must convert to incremental)
Need custom parser for book due to nested arrays