CCXT

kucoinfutures

kucoinfutures cryptocurrency exchange — CCXT unified API: methods, parameters and endpoints.

kucoinfutures

Kind: global class
Extends: Exchange

fetchStatus

the latest known information on the availability of the exchange API

Kind: instance method of kucoinfutures
Returns: object - a status structure

See: https://www.kucoin.com/docs/rest/futures-trading/market-data/get-service-status

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchStatus (params?)

fetchMarkets

retrieves data on all markets for kucoinfutures

Kind: instance method of kucoinfutures
Returns: Array<object> - an array of objects representing market data

See: https://www.kucoin.com/docs/rest/futures-trading/market-data/get-symbols-list

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange api endpoint
kucoinfutures.fetchMarkets (params?)

fetchTime

fetches the current integer timestamp in milliseconds from the exchange server

Kind: instance method of kucoinfutures
Returns: int - the current integer timestamp in milliseconds from the exchange server

See: https://www.kucoin.com/docs/rest/futures-trading/market-data/get-server-time

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchTime (params?)

fetchOHLCV

fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market

Kind: instance method of kucoinfutures
Returns: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume

See: https://www.kucoin.com/docs/rest/futures-trading/market-data/get-klines

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch OHLCV data for
timeframestringYesthe length of time each candle represents
sinceintNotimestamp in ms of the earliest candle to fetch
limitintNothe maximum amount of candles to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
kucoinfutures.fetchOHLCV (symbol, timeframe, since?, limit?, params?)

fetchDepositAddress

fetch the deposit address for a currency associated with this account

Kind: instance method of kucoinfutures
Returns: object - an address structure

See: https://www.kucoin.com/docs/rest/funding/deposit/get-deposit-address

ParamTypeRequiredDescription
codestringYesunified currency code
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchDepositAddress (code, params?)

fetchOrderBook

fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data

Kind: instance method of kucoinfutures
Returns: object - A dictionary of order book structures indexed by market symbols

See: https://www.kucoin.com/docs/rest/futures-trading/market-data/get-part-order-book-level-2

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the order book for
limitintNothe maximum amount of order book entries to return
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchOrderBook (symbol, limit?, params?)

fetchTicker

fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market

Kind: instance method of kucoinfutures
Returns: object - a ticker structure

See: https://www.kucoin.com/docs/rest/futures-trading/market-data/get-ticker

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchTicker (symbol, params?)

fetchMarkPrice

fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market

Kind: instance method of kucoinfutures
Returns: object - a ticker structure

See: https://www.kucoin.com/docs/rest/futures-trading/market-data/get-current-mark-price

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchMarkPrice (symbol, params?)

fetchTickers

fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market

Kind: instance method of kucoinfutures
Returns: object - a dictionary of ticker structures

See: https://www.kucoin.com/docs/rest/futures-trading/market-data/get-symbols-list

ParamTypeRequiredDescription
symbolsArray<string>Nounified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
paramsobjectNoextra parameters specific to the exchange API endpoint
params.methodstringNothe method to use, futuresPublicGetAllTickers or futuresPublicGetContractsActive
kucoinfutures.fetchTickers (symbols?, params?)

fetchBidsAsks

fetches the bid and ask price and volume for multiple markets

Kind: instance method of kucoinfutures
Returns: object - a dictionary of ticker structures

ParamTypeRequiredDescription
symbolsArray<string>Nounified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchBidsAsks (symbols?, params?)

fetchFundingHistory

fetch the history of funding payments paid and received on this account

Kind: instance method of kucoinfutures
Returns: object - a funding history structure

See: https://www.kucoin.com/docs/rest/futures-trading/funding-fees/get-funding-history

ParamTypeRequiredDescription
symbolstringYesunified market symbol
sinceintNothe earliest time in ms to fetch funding history for
limitintNothe maximum number of funding history structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchFundingHistory (symbol, since?, limit?, params?)

fetchPosition

fetch data on an open position

Kind: instance method of kucoinfutures
Returns: object - a position structure

See: https://docs.kucoin.com/futures/#get-position-details

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market the position is held in
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchPosition (symbol, params?)

fetchPositions

fetch all open positions

Kind: instance method of kucoinfutures
Returns: Array<object> - a list of position structure

See: https://docs.kucoin.com/futures/#get-position-list

ParamTypeRequiredDescription
symbolsArray<string>, undefinedYeslist of unified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchPositions (symbols, params?)

fetchPositionsHistory

fetches historical positions

Kind: instance method of kucoinfutures
Returns: Array<object> - a list of position structure

See: https://www.kucoin.com/docs/rest/futures-trading/positions/get-positions-history

ParamTypeRequiredDescription
symbolsArray<string>Nolist of unified market symbols
sinceintNothe earliest time in ms to fetch position history for
limitintNothe maximum number of entries to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNoclosing end time
params.pageIdintNopage id
kucoinfutures.fetchPositionsHistory (symbols?, since?, limit?, params?)

createOrder

Create an order on the exchange

Kind: instance method of kucoinfutures
Returns: object - an order structure

See

ParamTypeRequiredDescription
symbolstringYesUnified CCXT market symbol
typestringYes'limit' or 'market'
sidestringYes'buy' or 'sell'
amountfloatYesthe amount of currency to trade
pricefloatNothe price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
paramsobjectNoextra parameters specific to the exchange API endpoint
params.takeProfitobjectNotakeProfit object in params containing the triggerPrice at which the attached take profit order will be triggered and the triggerPriceType
params.stopLossobjectNostopLoss object in params containing the triggerPrice at which the attached stop loss order will be triggered and the triggerPriceType
params.triggerPricefloatNoThe price a trigger order is triggered at
params.stopLossPricefloatNoprice to trigger stop-loss orders
params.takeProfitPricefloatNoprice to trigger take-profit orders
params.reduceOnlyboolNoA mark to reduce the position size only. Set to false by default. Need to set the position size when reduceOnly is true.
params.timeInForcestringNoGTC, GTT, IOC, or FOK, default is GTC, limit orders only
params.postOnlystringNoPost only flag, invalid when timeInForce is IOC or FOK
params.costfloatNothe cost of the order in units of USDT
params.marginModestringNo'cross' or 'isolated', default is 'isolated'
params.hedgedboolNoswap and future only true for hedged mode, false for one way mode, default is false ----------------- Exchange Specific Parameters -----------------
params.leveragefloatNoLeverage size of the order (mandatory param in request, default is 1)
params.clientOidstringNoclient order id, defaults to uuid if not passed
params.remarkstringNoremark for the order, length cannot exceed 100 utf8 characters
params.stopstringNo'up' or 'down', the direction the triggerPrice is triggered from, requires triggerPrice. down: Triggers when the price reaches or goes below the triggerPrice. up: Triggers when the price reaches or goes above the triggerPrice.
params.triggerPriceTypestringNo"last", "mark", "index" - defaults to "mark"
params.stopPriceTypestringNoexchange-specific alternative for triggerPriceType: TP, IP or MP
params.closeOrderboolNoset to true to close position
params.testboolNoset to true to use the test order endpoint (does not submit order, use to validate params)
params.forceHoldboolNoA mark to forcely hold the funds for an order, even though it's an order to reduce the position size. This helps the order stay on the order book and not get canceled when the position size changes. Set to false by default.\
params.positionSidestringNoswap and future only hedged two-way position side, LONG or SHORT
kucoinfutures.createOrder (symbol, type, side, amount, price?, params?)

createOrders

create a list of trade orders

Kind: instance method of kucoinfutures
Returns: object - an order structure

See: https://www.kucoin.com/docs/rest/futures-trading/orders/place-multiple-orders

ParamTypeRequiredDescription
ordersArrayYeslist of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.createOrders (orders, params?)

cancelOrder

cancels an open order

Kind: instance method of kucoinfutures
Returns: object - An order structure

See: https://www.kucoin.com/docs/rest/futures-trading/orders/cancel-futures-order-by-orderid

ParamTypeRequiredDescription
idstringYesorder id
symbolstringYesunified symbol of the market the order was made in
paramsobjectNoextra parameters specific to the exchange API endpoint
params.clientOrderIdstringNocancel order by client order id
kucoinfutures.cancelOrder (id, symbol, params?)

cancelOrders

cancel multiple orders

Kind: instance method of kucoinfutures
Returns: object - an list of order structures

See: https://www.kucoin.com/docs/rest/futures-trading/orders/batch-cancel-orders

ParamTypeRequiredDescription
idsArray<string>Yesorder ids
symbolstringYesunified symbol of the market the order was made in
paramsobjectNoextra parameters specific to the exchange API endpoint
params.clientOrderIdsArray<string>Noclient order ids
kucoinfutures.cancelOrders (ids, symbol, params?)

cancelAllOrders

cancel all open orders

Kind: instance method of kucoinfutures
Returns: Response from the exchange

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
paramsobjectNoextra parameters specific to the exchange API endpoint
params.triggerobjectNoWhen true, all the trigger orders will be cancelled
kucoinfutures.cancelAllOrders (symbol, params?)

addMargin

add margin

Kind: instance method of kucoinfutures
Returns: object - a margin structure

See: https://www.kucoin.com/docs/rest/futures-trading/positions/add-margin-manually

ParamTypeRequiredDescription
symbolstringYesunified market symbol
amountfloatYesamount of margin to add
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.addMargin (symbol, amount, params?)

fetchOrdersByStatus

fetches a list of orders placed on the exchange

Kind: instance method of kucoinfutures
Returns: An array of order structures

See

ParamTypeRequiredDescription
statusstringYes'active' or 'closed', only 'active' is valid for stop orders
symbolstringYesunified symbol for the market to retrieve orders from
sinceintNotimestamp in ms of the earliest order to retrieve
limitintNoThe maximum number of orders to retrieve
paramsobjectNoexchange specific parameters
params.triggerboolNoset to true to retrieve untriggered stop orders
params.untilintNoEnd time in ms
params.sidestringNobuy or sell
params.typestringNolimit or market
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
kucoinfutures.fetchOrdersByStatus (status, symbol, since?, limit?, params?)

fetchClosedOrders

fetches information on multiple closed orders made by the user

Kind: instance method of kucoinfutures
Returns: Array<Order> - a list of order structures

See: https://docs.kucoin.com/futures/#get-order-list

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market orders were made in
sinceintNothe earliest time in ms to fetch orders for
limitintNothe maximum number of order structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNoend time in ms
params.sidestringNobuy or sell
params.typestringNolimit, or market
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
kucoinfutures.fetchClosedOrders (symbol, since?, limit?, params?)

fetchOpenOrders

fetches information on multiple open orders made by the user

Kind: instance method of kucoinfutures
Returns: Array<Order> - a list of order structures

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market orders were made in
sinceintNothe earliest time in ms to fetch orders for
limitintNothe maximum number of order structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNoend time in ms
params.sidestringNobuy or sell
params.typestringNolimit, or market
params.triggerbooleanNoset to true to retrieve untriggered stop orders
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
kucoinfutures.fetchOpenOrders (symbol, since?, limit?, params?)

fetchOrder

fetches information on an order made by the user

Kind: instance method of kucoinfutures
Returns: object - An order structure

See: https://docs.kucoin.com/futures/#get-details-of-a-single-order

ParamTypeRequiredDescription
idstringYesorder id
symbolstringYesunified symbol of the market the order was made in
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchOrder (id, symbol, params?)

fetchFundingRate

fetch the current funding rate

Kind: instance method of kucoinfutures
Returns: object - a funding rate structure

See: https://www.kucoin.com/docs/rest/futures-trading/funding-fees/get-current-funding-rate

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchFundingRate (symbol, params?)

fetchFundingInterval

fetch the current funding rate interval

Kind: instance method of kucoinfutures
Returns: object - a funding rate structure

See: https://www.kucoin.com/docs/rest/futures-trading/funding-fees/get-current-funding-rate

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchFundingInterval (symbol, params?)

fetchBalance

query for balance and get the amount of funds available for trading or funds locked in orders

Kind: instance method of kucoinfutures
Returns: object - a balance structure

See: https://www.kucoin.com/docs/rest/funding/funding-overview/get-account-detail-futures

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
params.codeobjectNothe unified currency code to fetch the balance for, if not provided, the default .options['fetchBalance']['code'] will be used
kucoinfutures.fetchBalance (params?)

transfer

transfer currency internally between wallets on the same account

Kind: instance method of kucoinfutures
Returns: object - a transfer structure

See

ParamTypeRequiredDescription
codestringYesunified currency code
amountfloatYesamount to transfer
fromAccountstringYesaccount to transfer from
toAccountstringYesaccount to transfer to
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.transfer (code, amount, fromAccount, toAccount, params?)

fetchMyTrades

fetch all trades made by the user

Kind: instance method of kucoinfutures
Returns: Array<Trade> - a list of trade structures

See: https://docs.kucoin.com/futures/#get-fills

ParamTypeRequiredDescription
symbolstringYesunified market symbol
sinceintNothe earliest time in ms to fetch trades for
limitintNothe maximum number of trades structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNoEnd time in ms
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
kucoinfutures.fetchMyTrades (symbol, since?, limit?, params?)

fetchTrades

get the list of most recent trades for a particular symbol

Kind: instance method of kucoinfutures
Returns: Array<Trade> - a list of trade structures

See: https://www.kucoin.com/docs/rest/futures-trading/market-data/get-transaction-history

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch trades for
sinceintNotimestamp in ms of the earliest trade to fetch
limitintNothe maximum amount of trades to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchTrades (symbol, since?, limit?, params?)

fetchDeposits

fetch all deposits made to an account

Kind: instance method of kucoinfutures
Returns: Array<object> - a list of transaction structures

ParamTypeRequiredDescription
codestringYesunified currency code
sinceintNothe earliest time in ms to fetch deposits for
limitintNothe maximum number of deposits structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchDeposits (code, since?, limit?, params?)

fetchWithdrawals

fetch all withdrawals made from an account

Kind: instance method of kucoinfutures
Returns: Array<object> - a list of transaction structures

ParamTypeRequiredDescription
codestringYesunified currency code
sinceintNothe earliest time in ms to fetch withdrawals for
limitintNothe maximum number of withdrawals structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchWithdrawals (code, since?, limit?, params?)

fetchMarketLeverageTiers

retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes for a single market

Kind: instance method of kucoinfutures
Returns: object - a leverage tiers structure

See: https://www.kucoin.com/docs/rest/futures-trading/risk-limit/get-futures-risk-limit-level

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchMarketLeverageTiers (symbol, params?)

fetchFundingRateHistory

fetches historical funding rate prices

Kind: instance method of kucoinfutures
Returns: Array<object> - a list of funding rate structures

See: https://www.kucoin.com/docs/rest/futures-trading/funding-fees/get-public-funding-history#request-url

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the funding rate history for
sinceintNonot used by kucuoinfutures
limitintNothe maximum amount of funding rate structures to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNoend time in ms
kucoinfutures.fetchFundingRateHistory (symbol, since?, limit?, params?)

closePosition

closes open positions for a market

Kind: instance method of kucoinfutures
Returns: Array<object> - A list of position structures

See: https://www.kucoin.com/docs/rest/futures-trading/orders/place-order

ParamTypeRequiredDescription
symbolstringYesUnified CCXT market symbol
sidestringYesnot used by kucoinfutures closePositions
paramsobjectNoextra parameters specific to the okx api endpoint
params.clientOrderIdstringNoclient order id of the order
kucoinfutures.closePosition (symbol, side, params?)

fetchTradingFee

fetch the trading fees for a market

Kind: instance method of kucoinfutures
Returns: object - a fee structure

See: https://www.kucoin.com/docs/rest/funding/trade-fee/trading-pair-actual-fee-futures

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchTradingFee (symbol, params?)

fetchMarginMode

fetches the margin mode of a trading pair

Kind: instance method of kucoinfutures
Returns: object - a margin mode structure

See: https://www.kucoin.com/docs/rest/futures-trading/positions/get-margin-mode

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the margin mode for
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchMarginMode (symbol, params?)

setMarginMode

set margin mode to 'cross' or 'isolated'

Kind: instance method of kucoinfutures
Returns: object - response from the exchange

See: https://www.kucoin.com/docs/rest/futures-trading/positions/modify-margin-mode

ParamTypeRequiredDescription
marginModestringYes'cross' or 'isolated'
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.setMarginMode (marginMode, symbol, params?)

setPositionMode

set hedged to true or false for a market

Kind: instance method of kucoinfutures
Returns: object - a response from the exchange

See: https://www.kucoin.com/docs-new/3475097e0

ParamTypeRequiredDescription
hedgedboolYesset to true to use two way position
symbolstringNonot used by bybit setPositionMode ()
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.setPositionMode (hedged, symbol?, params?)

fetchLeverage

fetch the set leverage for a market

Kind: instance method of kucoinfutures
Returns: object - a leverage structure

See: https://www.kucoin.com/docs/rest/futures-trading/positions/get-cross-margin-leverage

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchLeverage (symbol, params?)

setLeverage

set the level of leverage for a market

Kind: instance method of kucoinfutures
Returns: object - response from the exchange

See: https://www.kucoin.com/docs/rest/futures-trading/positions/modify-cross-margin-leverage

ParamTypeRequiredDescription
leveragefloatYesthe rate of leverage
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.setLeverage (leverage, symbol, params?)

fetchPositionsADLRank

fetches the auto deleveraging rank and risk percentage for a list of symbols

Kind: instance method of kucoinfutures
Returns: Array<object> - an array of auto de leverage structures

See: https://www.kucoin.com/docs-new/rest/futures-trading/positions/get-position-list

ParamTypeRequiredDescription
symbolsArray<string>Nolist of unified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.fetchPositionsADLRank (symbols?, params?)

watchTicker

watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market

Kind: instance method of kucoinfutures
Returns: object - a ticker structure

See: https://www.kucoin.com/docs/websocket/futures-trading/public-channels/get-ticker

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.watchTicker (symbol, params?)

watchTickers

watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list

Kind: instance method of kucoinfutures
Returns: object - a ticker structure

ParamTypeRequiredDescription
symbolsArray<string>Yesunified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.watchTickers (symbols, params?)

watchBidsAsks

watches best bid & ask for symbols

Kind: instance method of kucoinfutures
Returns: object - a ticker structure

See: https://www.kucoin.com/docs/websocket/futures-trading/public-channels/get-ticker-v2

ParamTypeRequiredDescription
symbolsArray<string>Yesunified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.watchBidsAsks (symbols, params?)

watchPosition

watch open positions for a specific symbol

Kind: instance method of kucoinfutures
Returns: object - a position structure

See: https://docs.kucoin.com/futures/#position-change-events

ParamTypeDescription
symbolstring, undefinedunified market symbol
paramsobjectextra parameters specific to the exchange API endpoint
kucoinfutures.watchPosition (symbol, params)

watchTrades

get the list of most recent trades for a particular symbol

Kind: instance method of kucoinfutures
Returns: Array<object> - a list of trade structures

See: https://docs.kucoin.com/futures/#execution-data

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch trades for
sinceintNotimestamp in ms of the earliest trade to fetch
limitintNothe maximum amount of trades to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.watchTrades (symbol, since?, limit?, params?)

watchTradesForSymbols

get the list of most recent trades for a particular symbol

Kind: instance method of kucoinfutures
Returns: Array<object> - a list of trade structures

ParamTypeRequiredDescription
symbolsArray<string>Yes
sinceintNotimestamp in ms of the earliest trade to fetch
limitintNothe maximum amount of trades to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.watchTradesForSymbols (symbols, since?, limit?, params?)

unWatchTrades

unWatches trades stream

Kind: instance method of kucoinfutures
Returns: Array<object> - a list of trade structures

See: https://docs.kucoin.com/futures/#execution-data

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch trades for
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.unWatchTrades (symbol, params?)

unWatchTradesForSymbols

get the list of most recent trades for a particular symbol

Kind: instance method of kucoinfutures
Returns: Array<object> - a list of trade structures

ParamTypeRequiredDescription
symbolsArray<string>Yes
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.unWatchTradesForSymbols (symbols, params?)

watchOHLCV

watches historical candlestick data containing the open, high, low, and close price, and the volume of a market

Kind: instance method of kucoinfutures
Returns: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume

See: https://www.kucoin.com/docs/websocket/futures-trading/public-channels/klines

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch OHLCV data for
timeframestringYesthe length of time each candle represents
sinceintNotimestamp in ms of the earliest candle to fetch
limitintNothe maximum amount of candles to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.watchOHLCV (symbol, timeframe, since?, limit?, params?)

watchOrderBook

watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data

  1. After receiving the websocket Level 2 data flow, cache the data.
  2. Initiate a REST request to get the snapshot data of Level 2 order book.
  3. Playback the cached Level 2 data flow.
  4. Apply the new Level 2 data flow to the local snapshot to ensure that the sequence of the new Level 2 update lines up with the sequence of the previous Level 2 data. Discard all the message prior to that sequence, and then playback the change to snapshot.
  5. Update the level2 full data based on sequence according to the size. If the price is 0, ignore the messages and update the sequence. If the size=0, update the sequence and remove the price of which the size is 0 out of level 2. For other cases, please update the price.
  6. If the sequence of the newly pushed message does not line up to the sequence of the last message, you could pull through REST Level 2 message request to get the updated messages. Please note that the difference between the start and end parameters cannot exceed 500.

Kind: instance method of kucoinfutures
Returns: object - A dictionary of order book structures indexed by market symbols

See: https://docs.kucoin.com/futures/#level-2-market-data

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the order book for
limitintNothe maximum amount of order book entries to return
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.watchOrderBook (symbol, limit?, params?)

watchOrderBookForSymbols

watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data

Kind: instance method of kucoinfutures
Returns: object - A dictionary of order book structures indexed by market symbols

See: https://docs.kucoin.com/futures/#level-2-market-data

ParamTypeRequiredDescription
symbolsArray<string>Yesunified array of symbols
limitintNothe maximum amount of order book entries to return
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.watchOrderBookForSymbols (symbols, limit?, params?)

unWatchOrderBook

unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data

Kind: instance method of kucoinfutures
Returns: object - A dictionary of order book structures indexed by market symbols

See: https://docs.kucoin.com/futures/#level-2-market-data

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the order book for
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.unWatchOrderBook (symbol, params?)

unWatchOrderBookForSymbols

unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data

Kind: instance method of kucoinfutures
Returns: object - A dictionary of order book structures indexed by market symbols

ParamTypeRequiredDescription
symbolsArray<string>Yesunified array of symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.unWatchOrderBookForSymbols (symbols, params?)

watchOrders

watches information on multiple orders made by the user

Kind: instance method of kucoinfutures
Returns: Array<object> - a list of order structures

See: https://docs.kucoin.com/futures/#trade-orders-according-to-the-market

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market orders were made in
sinceintNothe earliest time in ms to fetch orders for
limitintNothe maximum number of order structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.watchOrders (symbol, since?, limit?, params?)

watchBalance

watch balance and get the amount of funds available for trading or funds locked in orders

Kind: instance method of kucoinfutures
Returns: object - a balance structure

See: https://docs.kucoin.com/futures/#account-balance-events

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
kucoinfutures.watchBalance (params?)

On this page