Skip to main content

KuCoin Spot Trade Connector

Features

crypto-kucoinConnector Key
Instruments
FX
Request Types
SUBMITCANCEL
Order Types
MARKETLIMIT
Time In Force
GTCIOCFOKGTD
Order ID Mapper
COMPOSITE
Order Status Request
Cancel On Disconnect
Commission
Post Only
Fast Cancel
Fast Replace

Notes

Restrictions

The DECREASE_AND_CANCEL self-trade prevention option is not supported because the connector cannot detect order size reduction.

Symbology

Configuration

Connector settings

ParameterDefault ValueDescription
apiPassphrases.apiPassphraseThe passphrases you specified when creating the APIKey
tradeTypeSPOTDefault trade type. Values: SPOT, MARGIN.
marginModeCROSSDefault margin mode. Values: CROSS, ISOLATED.
autoBorrowfalseAuto Borrow flag. If flag is on the system will first borrow you funds at the optimal interest rate and then place an order for you.
selfTradePreventionDefault Self Trade Prevention mode. Values: DECREASE_AND_CANCEL, CANCEL_OLDEST, CANCEL_NEWEST, CANCEL_BOTH.
apiKeyVersion2ApiKey version. Exchange automatically migrated some of the apiKeys to the v3 version. You should check your ApiKey version and if it differs from default value change it.

Supported order attributes

KeyDescription
6301Default trade type. Values: SPOT, MARGIN.
6302Default margin mode. Values: CROSS, ISOLATED.
6303Auto Borrow flag. If flag is on the system will first borrow you funds at the optimal interest rate and then place an order for you.
6304Default Self Trade Prevention mode. Values: DECREASE_AND_CANCEL, CANCEL_OLDEST, CANCEL_NEWEST, CANCEL_BOTH.

Config sample

connectors {
KUCOIN: ${template.connector.crypto.kucoin} {
settings {
apiKeys: [
{
apiKey = "API KEY"
apiSecret = "API SECRET"
}
]

apiPassphrases = [
{
apiPassphrase = "API PASSPHRASE"
}
]

tradeType = MARGIN
marginMode = CROSS
autoBorrow = true

selfTradePrevention = null # OFF by default
}
}
}