roq-kucoin-pro¶
$ conda install \
--channel https://roq-trading.com/conda/unstable \
roq-kucoin-pro
$ conda install \
--channel https://roq-trading.com/conda/stable \
roq-kucoin-pro
Supports¶
✅ |
❶ |
|
✅ |
❶ |
|
✅ |
||
✅ |
||
❌ |
||
✅ |
||
✅ |
||
❌ |
Note
✅ = Available.
❎ = Not implemented.
❌ = Unavailable.
❶ The exchange protocol does not support streaming updates for reference data and market status.
Using¶
$ roq-bitget [FLAGS]
Flags¶
$ roq-kucoin-pro --help
--exchange(kucoin-pro)Exchange identifier
--ws_api(false)Use WebSocket API?
--rest_uri(https://api-sandbox-futures.kucoin.com)Exchange end-point
--rest_proxyProxy end-point
--rest_ping_freq(5s)Ping frequency
--rest_ping_path(/api/v1/status)Ping path
--rest_request_timeout(30s)Request timeout
--rest_token_refresh_freq(8h)Token refresh frequency
--ws_uri(wss://wsapi.kucoin.com)Exchange end-point
--ws_public_uri(wss://x-push-futures.kucoin.com)Exchange end-point
--ws_private_uri(wss://x-push-futures.kucoin.com)Exchange end-point
--ws_ping_freq(5s)Ping frequency
--ws_request_timeout(15s)Request timeout
--ws_max_subscriptions_per_stream(16)Maximum number of symbols per connection
--ws_subscribe_ticker_v2(false)Subscribe ticker v2?
--ws_mbp_request_delay(500ms)Request delay
--ws_mbp_request_max_retries(0)Request max retries
--mbp_allow_price_inversion(false)Allow price inversion?
--request_limit(100)Maximum number of requests per interval
--request_limit_interval(10s)Monitor interval
--encode_buffer_size(1048576)Encode buffer size
--decode_buffer_size(10485760)Decode buffer size
--top_of_book_from_ticker(false)Use the ‘ticker’ channel for top of book?
--experimental_enable_mbp(false)TEST
--experimental_simulate_expired_token(0s)Simulate disconnect
Environments¶
$ --flagfile $CONDA_PREFIX/share/roq-kucoin-pro/flags/prod/flags.cfg
# flagfile for the roq-kucoin-pro gateway
--rest_uri=https://api.kucoin.com
--ws_public_uri=wss://x-push-futures.kucoin.com
--ws_private_uri=wss://wsapi-push.kucoin.com
--ws_uri=wss://wsapi.kucoin.com/v1/private
Configuration¶
$ --config_file $CONDA_PREFIX/share/roq-kucoin-pro/config.toml
Important
This template will be replaced when the software is upgraded. Make a copy and modify to your own needs.
# config template for the roq-kucoin-futures gateway
symbols = [
"^ETHUSD[A-Z]M$",
"^XBTUSD[A-Z]M$"
]
[accounts]
[accounts.A1]
master = true
login = "YOUR_KUCOIN_FUTURES_API_KEY_GOES_HERE"
password = "YOUR_KUCOIN_FUTURES_PASSPHRASE_GOES_HERE"
secret = "YOUR_KUCOIN_FUTURES_SECRET_GOES_HERE"
symbols = [ ".*" ]
[users]
[users.test]
password = "1234"
symbols = ".*"
[users.trader]
password = "secret"
accounts = [ "A1" ]
symbols = [ ".*BTC.*", ".*ETH.*" ]
[rate_limits]
[rate_limits.global]
type = "ORDER_ACTION"
aggregate = true
request_limit = 100
monitor_period = "10s"
ban_period = "5m"
Market Data¶
Inbound¶
Message |
Field |
Value |
||
|---|---|---|---|---|
|
|
|
⇒ |
Event |
Field |
||
|---|---|---|---|
|
|
⇒ |
|
|
|
⇒ |
|
|
|
⇒ |
|
|
|
⇒ |
|
|
|
⇒ |
|
|
|
⇒ |
|
|
|
⇒ |
Order Management¶
Inbound¶
Outbound¶
|
|
|
||||||
|---|---|---|---|---|---|---|---|---|
✅ |
|
|
⇒ |
|
❌ |
|||
❌ |
|
✅ |
||||||
✅ |
✅ |
|
⇒ |
|
❌ |
|||
❌ |
✅ |
✅ |
TBD
TBD
TBD
Comments¶
Only support for UNIFIED mode
REST order cancel + cancel-all doesn’t work
WS doesn’t currently support the execution stream (asof 2026-02-22)