roq-kucoin-futures#
Important
This gateway needs sponsorship to complete certain features.
Links#
Purpose#
Maintain network connectivity with the KuCoin Futures exchange
Route exchange updates to connected clients
Route client requests to the relevant exchange accounts
Stream all messages to an event-log
Overview#
Spot |
|
Futures |
✓ |
Options |
Reference Data |
✓ |
Market Status |
✓ |
Top of Book |
✓ |
Market by Price (L2) |
✓ |
Market by Order (L3) |
|
Trade Summary |
✓ |
Statistics |
✓ |
Create |
✓ |
Modify |
|
Cancel |
✓ |
Cancel All |
✓ |
Auto Cancellation |
Positions |
✓ |
Funds |
✓ |
Data center located in … (to be confirmed)
No test environment
Conda#
$ mamba install \
--channel https://roq-trading.com/conda/stable \
roq-kucoin-futures
$ cp $CONDA_PREFIX/share/roq-kucoin-futures/config.toml $CONFIG_FILE_PATH
# Then modify $CONFIG_FILE_PATH to match your specific configuration
$ roq-kucoin-futures \
--name "kucoin-futures" \
--config_file "$CONFIG_FILE_PATH" \
--client_listen_address "$UNIX_SOCKET_PATH" \
--service_listen_address "$TCP_LISTEN_PORT" \
--flagfile "$FLAG_FILE"
Config#
Flags#
$ roq-kucoin-futures --help
Environments#
# flagfile
--rest_uri=https://api-futures.kucoin.com
# flagfile
--rest_uri=https://api-sandbox-futures.kucoin.com
# flagfile
--rest_uri=https://api-v2-futures.kucoin.com
--api=v2
Note
The WebSocket URI will be discovered by querying the REST service. There are therefore no additional flags to specify network end-points.
Market Data#
Event |
Stream |
Messages |
Comments |
---|---|---|---|
MarketData |
/contract/instrument |
||
MarketData |
/contract/instrument |
||
MarketData |
/contractMarket/tickerV2 or /contractMarket/ticker |
||
MarketData |
/contractMarket/level2 |
||
MarketData |
/contractMarket/execution |
||
MarketData |
/contract/announcement |
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Rest |
/api/v1/contracts/active |
||
Rest |
/api/v1/contracts/active |
||
Rest |
/api/v1/level2/snapshot |
||
Statistics#
Type |
Comments |
---|---|
|
mark_index_price.mark_price |
|
mark_index_price.index_value |
|
funding_rate.funding_rate |
|
funding_begin.funding_rate |
|
snapshot_24h.volume |
Order Management#
Event |
Stream |
Messages |
Comments |
---|---|---|---|
DropCopy |
/contractMarket/tradeOrders |
||
Event |
Stream |
Messages |
Comments |
---|---|---|---|
OrderEntry |
GET /api/v1/orders |
It’s only possible to poll? |
|
OrderEntry |
GET /api/v1/fills |
It’s only possible to poll? |
Event |
Stream |
Messages |
Comments |
---|---|---|---|
OrderEntry |
POST /api/v1/orders |
||
OrderEntry |
DELETE /api/v1/orders/{order-id} |
||
OrderEntry |
DELETE /api/v1/orders |
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Order Types#
TBD
Time in Force#
TBD
Position Effect#
TBD
Execution Instructions#
TBD
Account Management#
Event |
Stream |
Messages |
Comments |
---|---|---|---|
DropCopy |
/contract/position:{symbol} |
||
DropCopy |
/contractAccount/wallet |
Event |
Stream |
Messages |
Comments |
---|---|---|---|
OrderEntry |
GET /api/v1/position |
||
Streams#
Type |
Comments |
---|---|
REST |
Primary purpose
|
Type |
Comments |
---|---|
WebSocket |
Primary purpose
Each connection
|
Constraints#
It does not appear to be possible to subscribe all symbols more than once per IP address.
Comments#
Orders can NOT be canceled by client order id.
Fills are not communicated in real-time (only indirectly through order updates).
There are no options to instruct the exchange to auto-cancel orders on disconnect.
API v2 has been announced. As of 2022-07-01, it is unclear when this new API will be released to production. However, it sounds like it will be a change with no transition period with support for both API’s.
2022-05-31
2022-06-24
docs