Files
2025-10-03 15:28:16 +08:00

68 KiB

kucoin{docsify-ignore}

Kind: global class
Extends: Exchange

fetchTime{docsify-ignore}

fetches the current integer timestamp in milliseconds from the exchange server

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

See: https://docs.kucoin.com/#server-time

Param Type Required Description
params object No extra parameters specific to the exchange API endpoint
kucoin.fetchTime ([params])

fetchStatus{docsify-ignore}

the latest known information on the availability of the exchange API

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

See: https://docs.kucoin.com/#service-status

Param Type Required Description
params object No extra parameters specific to the exchange API endpoint
kucoin.fetchStatus ([params])

fetchMarkets{docsify-ignore}

retrieves data on all markets for kucoin

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

See

Param Type Required Description
params object No extra parameters specific to the exchange API endpoint
kucoin.fetchMarkets ([params])

loadMigrationStatus{docsify-ignore}

loads the migration status for the account (hf or not)

Kind: instance method of kucoin
Returns: any - ignore

See: https://www.kucoin.com/docs/rest/spot-trading/spot-hf-trade-pro-account/get-user-type

Param Type Description
force boolean load account state for non hf
kucoin.loadMigrationStatus (force, [undefined])

fetchCurrencies{docsify-ignore}

fetches all available currencies on an exchange

Kind: instance method of kucoin
Returns: object - an associative dictionary of currencies

See: https://docs.kucoin.com/#get-currencies

Param Type Description
params object extra parameters specific to the exchange API endpoint
kucoin.fetchCurrencies (params, [undefined])

fetchAccounts{docsify-ignore}

fetch all the accounts associated with a profile

Kind: instance method of kucoin
Returns: object - a dictionary of account structures indexed by the account type

See: https://docs.kucoin.com/#list-accounts

Param Type Required Description
params object No extra parameters specific to the exchange API endpoint
kucoin.fetchAccounts ([params])

fetchTransactionFee{docsify-ignore}

DEPRECATED please use fetchDepositWithdrawFee instead

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

See: https://docs.kucoin.com/#get-withdrawal-quotas

Param Type Description
code string unified currency code
params object extra parameters specific to the exchange API endpoint
kucoin.fetchTransactionFee (code, params[])

fetchDepositWithdrawFee{docsify-ignore}

fetch the fee for deposits and withdrawals

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

See: https://docs.kucoin.com/#get-withdrawal-quotas

Param Type Required Description
code string Yes unified currency code
params object No extra parameters specific to the exchange API endpoint
params.network string No The chain of currency. This only apply for multi-chain currency, and there is no need for single chain currency; you can query the chain through the response of the GET /api/v2/currencies/{currency} interface
kucoin.fetchDepositWithdrawFee (code[, params])

fetchTickers{docsify-ignore}

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

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

See: https://docs.kucoin.com/#get-all-tickers

Param Type Required Description
symbols Array<string>, undefined Yes unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
params object No extra parameters specific to the exchange API endpoint
kucoin.fetchTickers (symbols[, params])

fetchMarkPrices{docsify-ignore}

fetches the mark price for multiple markets

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

See: https://www.kucoin.com/docs/rest/margin-trading/margin-info/get-all-margin-trading-pairs-mark-prices

Param Type Required Description
symbols Array<string> No unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
params object No extra parameters specific to the exchange API endpoint
kucoin.fetchMarkPrices ([symbols, params])

fetchTicker{docsify-ignore}

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

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

See: https://docs.kucoin.com/#get-24hr-stats

Param Type Required Description
symbol string Yes unified symbol of the market to fetch the ticker for
params object No extra parameters specific to the exchange API endpoint
kucoin.fetchTicker (symbol[, params])

fetchMarkPrice{docsify-ignore}

fetches the mark price for a specific market

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

See: https://www.kucoin.com/docs/rest/margin-trading/margin-info/get-mark-price

Param Type Required Description
symbol string Yes unified symbol of the market to fetch the ticker for
params object No extra parameters specific to the exchange API endpoint
kucoin.fetchMarkPrice (symbol[, params])

fetchOHLCV{docsify-ignore}

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

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

See: https://docs.kucoin.com/#get-klines

Param Type Required Description
symbol string Yes unified symbol of the market to fetch OHLCV data for
timeframe string Yes the length of time each candle represents
since int No timestamp in ms of the earliest candle to fetch
limit int No the maximum amount of candles to fetch
params object No extra parameters specific to the exchange API endpoint
params.paginate boolean No default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
kucoin.fetchOHLCV (symbol, timeframe[, since, limit, params])

createDepositAddress{docsify-ignore}

create a currency deposit address

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

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

Param Type Required Description
code string Yes unified currency code of the currency for the deposit address
params object No extra parameters specific to the exchange API endpoint
params.network string No the blockchain network name
kucoin.createDepositAddress (code[, params])

fetchDepositAddress{docsify-ignore}

fetch the deposit address for a currency associated with this account

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

See: https://docs.kucoin.com/#get-deposit-addresses-v2

Param Type Required Description
code string Yes unified currency code
params object No extra parameters specific to the exchange API endpoint
params.network string No the blockchain network name
kucoin.fetchDepositAddress (code[, params])

fetchDepositAddressesByNetwork{docsify-ignore}

fetch the deposit address for a currency associated with this account

Kind: instance method of kucoin
Returns: object - an array of address structures

See: https://docs.kucoin.com/#get-deposit-addresses-v2

Param Type Required Description
code string Yes unified currency code
params object No extra parameters specific to the exchange API endpoint
kucoin.fetchDepositAddressesByNetwork (code[, params])

fetchOrderBook{docsify-ignore}

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

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

See

Param Type Required Description
symbol string Yes unified symbol of the market to fetch the order book for
limit int No the maximum amount of order book entries to return
params object No extra parameters specific to the exchange API endpoint
kucoin.fetchOrderBook (symbol[, limit, params])

createOrder{docsify-ignore}

Create an order on the exchange

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

See

Param Type Required Description
symbol string Yes Unified CCXT market symbol
type string Yes 'limit' or 'market'
side string Yes 'buy' or 'sell'
amount float Yes the amount of currency to trade
price float No the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
params object No extra parameters specific to the exchange API endpoint
params.triggerPrice float No The price at which a trigger order is triggered at
params.marginMode string No 'cross', // cross (cross mode) and isolated (isolated mode), set to cross by default, the isolated mode will be released soon, stay tuned
params.timeInForce string No GTC, GTT, IOC, or FOK, default is GTC, limit orders only
params.postOnly string No Post only flag, invalid when timeInForce is IOC or FOK EXCHANGE SPECIFIC PARAMETERS
params.clientOid string No client order id, defaults to uuid if not passed
params.remark string No remark for the order, length cannot exceed 100 utf8 characters
params.tradeType string No 'TRADE', // TRADE, MARGIN_TRADE // not used with margin orders limit orders ---------------------------------------------------
params.cancelAfter float No long, // cancel after n seconds, requires timeInForce to be GTT
params.hidden bool No false, // Order will not be displayed in the order book
params.iceberg bool No false, // Only a portion of the order is displayed in the order book
params.visibleSize string No this.amountToPrecision (symbol, visibleSize), // The maximum visible size of an iceberg order market orders --------------------------------------------------
params.funds string No // Amount of quote currency to use stop orders ----------------------------------------------------
params.stop string No Either loss or entry, the default is loss. Requires triggerPrice to be defined margin orders --------------------------------------------------
params.leverage float No Leverage size of the order
params.stp string No '', // self trade prevention, CN, CO, CB or DC
params.autoBorrow bool No false, // The system will first borrow you funds at the optimal interest rate and then place an order for you
params.hf bool No false, // true for hf order
params.test bool No set to true to test an order, no order will be created but the request will be validated
params.sync bool No set to true to use the hf sync call
kucoin.createOrder (symbol, type, side, amount[, price, params])

createMarketOrderWithCost{docsify-ignore}

create a market order by providing the symbol, side and cost

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

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

Param Type Required Description
symbol string Yes unified symbol of the market to create an order in
side string Yes 'buy' or 'sell'
cost float Yes how much you want to trade in units of the quote currency
params object No extra parameters specific to the exchange API endpoint
kucoin.createMarketOrderWithCost (symbol, side, cost[, params])

createMarketBuyOrderWithCost{docsify-ignore}

create a market buy order by providing the symbol and cost

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

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

Param Type Required Description
symbol string Yes unified symbol of the market to create an order in
cost float Yes how much you want to trade in units of the quote currency
params object No extra parameters specific to the exchange API endpoint
kucoin.createMarketBuyOrderWithCost (symbol, cost[, params])

createMarketSellOrderWithCost{docsify-ignore}

create a market sell order by providing the symbol and cost

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

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

Param Type Required Description
symbol string Yes unified symbol of the market to create an order in
cost float Yes how much you want to trade in units of the quote currency
params object No extra parameters specific to the exchange API endpoint
kucoin.createMarketSellOrderWithCost (symbol, cost[, params])

createOrders{docsify-ignore}

create a list of trade orders

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

See

Param Type Required Description
orders Array Yes list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
params object No extra parameters specific to the exchange API endpoint
params.hf bool No false, // true for hf orders
params.sync bool No false, // true to use the hf sync call
kucoin.createOrders (orders[, params])

editOrder{docsify-ignore}

edit an order, kucoin currently only supports the modification of HF orders

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

See: https://docs.kucoin.com/spot-hf/#modify-order

Param Type Required Description
id string Yes order id
symbol string Yes unified symbol of the market to create an order in
type string Yes not used
side string Yes not used
amount float Yes how much of the currency you want to trade in units of the base currency
price float No the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
params object No extra parameters specific to the exchange API endpoint
params.clientOrderId string No client order id, defaults to id if not passed
kucoin.editOrder (id, symbol, type, side, amount[, price, params])

cancelOrder{docsify-ignore}

cancels an open order

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

See

Param Type Required Description
id string Yes order id
symbol string Yes unified symbol of the market the order was made in
params object No extra parameters specific to the exchange API endpoint
params.trigger bool No True if cancelling a stop order
params.hf bool No false, // true for hf order
params.sync bool No false, // true to use the hf sync call
kucoin.cancelOrder (id, symbol[, params])

cancelAllOrders{docsify-ignore}

cancel all open orders

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

See

Param Type Required Description
symbol string Yes unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
params object No extra parameters specific to the exchange API endpoint
params.trigger bool No invalid for isolated margin true if cancelling all stop orders
params.marginMode string No 'cross' or 'isolated'
params.orderIds string No stop orders only Comma seperated order IDs
params.hf bool No false, // true for hf order
kucoin.cancelAllOrders (symbol[, params])

fetchOrdersByStatus{docsify-ignore}

fetch a list of orders

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

See

Param Type Required Description
status string Yes not used for stop orders 'open' or 'closed'
symbol string Yes unified market symbol
since int No timestamp in ms of the earliest order
limit int No max number of orders to return
params object No exchange specific params
params.until int No end time in ms
params.side string No buy or sell
params.type string No limit, market, limit_stop or market_stop
params.tradeType string No TRADE for spot trading, MARGIN_TRADE for Margin Trading
params.currentPage int No trigger orders only current page
params.orderIds string No trigger orders only comma seperated order ID list
params.trigger bool No True if fetching a trigger order
params.hf bool No false, // true for hf order
kucoin.fetchOrdersByStatus (status, symbol[, since, limit, params])

fetchClosedOrders{docsify-ignore}

fetches information on multiple closed orders made by the user

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

See

Param Type Required Description
symbol string Yes unified market symbol of the market orders were made in
since int No the earliest time in ms to fetch orders for
limit int No the maximum number of order structures to retrieve
params object No extra parameters specific to the exchange API endpoint
params.until int No end time in ms
params.side string No buy or sell
params.type string No limit, market, limit_stop or market_stop
params.tradeType string No TRADE for spot trading, MARGIN_TRADE for Margin Trading
params.trigger bool No True if fetching a trigger order
params.hf bool No false, // true for hf order
params.paginate boolean No default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
kucoin.fetchClosedOrders (symbol[, since, limit, params])

fetchOpenOrders{docsify-ignore}

fetch all unfilled currently open orders

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

See

Param Type Required Description
symbol string Yes unified market symbol
since int No the earliest time in ms to fetch open orders for
limit int No the maximum number of open orders structures to retrieve
params object No extra parameters specific to the exchange API endpoint
params.until int No end time in ms
params.trigger bool No true if fetching trigger orders
params.side string No buy or sell
params.type string No limit, market, limit_stop or market_stop
params.tradeType string No TRADE for spot trading, MARGIN_TRADE for Margin Trading
params.currentPage int No trigger orders only current page
params.orderIds string No trigger orders only comma seperated order ID list
params.hf bool No false, // true for hf order
params.paginate boolean No default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
kucoin.fetchOpenOrders (symbol[, since, limit, params])

fetchOrder{docsify-ignore}

fetch an order

Kind: instance method of kucoin
Returns: An order structure

See

Param Type Required Description
id string Yes Order id
symbol string Yes not sent to exchange except for trigger orders with clientOid, but used internally by CCXT to filter
params object No exchange specific parameters
params.trigger bool No true if fetching a trigger order
params.hf bool No false, // true for hf order
params.clientOid bool No unique order id created by users to identify their orders
kucoin.fetchOrder (id, symbol[, params])

fetchOrderTrades{docsify-ignore}

fetch all the trades made from a single order

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

See

Param Type Required Description
id string Yes order id
symbol string Yes unified market symbol
since int No the earliest time in ms to fetch trades for
limit int No the maximum number of trades to retrieve
params object No extra parameters specific to the exchange API endpoint
kucoin.fetchOrderTrades (id, symbol[, since, limit, params])

fetchMyTrades{docsify-ignore}

fetch all trades made by the user

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

See

Param Type Required Description
symbol string Yes unified market symbol
since int No the earliest time in ms to fetch trades for
limit int No the maximum number of trades structures to retrieve
params object No extra parameters specific to the exchange API endpoint
params.until int No the latest time in ms to fetch entries for
params.hf bool No false, // true for hf order
params.paginate boolean No default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
kucoin.fetchMyTrades (symbol[, since, limit, params])

fetchTrades{docsify-ignore}

get the list of most recent trades for a particular symbol

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

See: https://www.kucoin.com/docs/rest/spot-trading/market-data/get-trade-histories

Param Type Required Description
symbol string Yes unified symbol of the market to fetch trades for
since int No timestamp in ms of the earliest trade to fetch
limit int No the maximum amount of trades to fetch
params object No extra parameters specific to the exchange API endpoint
kucoin.fetchTrades (symbol[, since, limit, params])

fetchTradingFee{docsify-ignore}

fetch the trading fees for a market

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

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

Param Type Required Description
symbol string Yes unified market symbol
params object No extra parameters specific to the exchange API endpoint
kucoin.fetchTradingFee (symbol[, params])

withdraw{docsify-ignore}

make a withdrawal

Kind: instance method of kucoin
Returns: object - a transaction structure

See: https://www.kucoin.com/docs/rest/funding/withdrawals/apply-withdraw-v3-

Param Type Required Description
code string Yes unified currency code
amount float Yes the amount to withdraw
address string Yes the address to withdraw to
tag string Yes
params object No extra parameters specific to the exchange API endpoint
kucoin.withdraw (code, amount, address, tag[, params])

fetchDeposits{docsify-ignore}

fetch all deposits made to an account

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

See

Param Type Required Description
code string Yes unified currency code
since int No the earliest time in ms to fetch deposits for
limit int No the maximum number of deposits structures to retrieve
params object No extra parameters specific to the exchange API endpoint
params.until int No the latest time in ms to fetch entries for
params.paginate boolean No default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
kucoin.fetchDeposits (code[, since, limit, params])

fetchWithdrawals{docsify-ignore}

fetch all withdrawals made from an account

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

See

Param Type Required Description
code string Yes unified currency code
since int No the earliest time in ms to fetch withdrawals for
limit int No the maximum number of withdrawals structures to retrieve
params object No extra parameters specific to the exchange API endpoint
params.until int No the latest time in ms to fetch entries for
params.paginate boolean No default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
kucoin.fetchWithdrawals (code[, since, limit, params])

fetchBalance{docsify-ignore}

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

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

See

Param Type Required Description
params object No extra parameters specific to the exchange API endpoint
params.marginMode object No 'cross' or 'isolated', margin type for fetching margin balance
params.type object No extra parameters specific to the exchange API endpoint
params.hf object No default if false if true, the result includes the balance of the high frequency account
kucoin.fetchBalance ([params])

transfer{docsify-ignore}

transfer currency internally between wallets on the same account

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

See

Param Type Required Description
code string Yes unified currency code
amount float Yes amount to transfer
fromAccount string Yes account to transfer from
toAccount string Yes account to transfer to
params object No extra parameters specific to the exchange API endpoint
kucoin.transfer (code, amount, fromAccount, toAccount[, params])

fetchLedger{docsify-ignore}

fetch the history of changes, actions done by the user or operations that altered the balance of the user

Kind: instance method of kucoin
Returns: object - a ledger structure

See

Param Type Required Description
code string No unified currency code, default is undefined
since int No timestamp in ms of the earliest ledger entry, default is undefined
limit int No max number of ledger entries to return, default is undefined
params object No extra parameters specific to the exchange API endpoint
params.hf boolean No default false, when true will fetch ledger entries for the high frequency trading account
params.until int No the latest time in ms to fetch entries for
params.paginate boolean No default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the available parameters
kucoin.fetchLedger ([code, since, limit, params])

fetchBorrowInterest{docsify-ignore}

fetch the interest owed by the user for borrowing currency for margin trading

Kind: instance method of kucoin
Returns: Array<object> - a list of borrow interest structures

See

Param Type Required Description
code string No unified currency code
symbol string No unified market symbol, required for isolated margin
since int No the earliest time in ms to fetch borrrow interest for
limit int No the maximum number of structures to retrieve
params object No extra parameters specific to the exchange API endpoint
params.marginMode string No 'cross' or 'isolated' default is 'cross'
kucoin.fetchBorrowInterest ([code, symbol, since, limit, params])

fetchBorrowRateHistories{docsify-ignore}

retrieves a history of a multiple currencies borrow interest rate at specific time slots, returns all currencies if no symbols passed, default is undefined

Kind: instance method of kucoin
Returns: object - a dictionary of borrow rate structures indexed by the market symbol

See: https://www.kucoin.com/docs/rest/margin-trading/margin-trading-v3-/get-cross-isolated-margin-interest-records

Param Type Required Description
codes Array<string>, undefined Yes list of unified currency codes, default is undefined
since int No timestamp in ms of the earliest borrowRate, default is undefined
limit int No max number of borrow rate prices to return, default is undefined
params object No extra parameters specific to the exchange API endpoint
params.marginMode string No 'cross' or 'isolated' default is 'cross'
params.until int No the latest time in ms to fetch entries for
kucoin.fetchBorrowRateHistories (codes[, since, limit, params])

fetchBorrowRateHistory{docsify-ignore}

retrieves a history of a currencies borrow interest rate at specific time slots

Kind: instance method of kucoin
Returns: Array<object> - an array of borrow rate structures

See: https://www.kucoin.com/docs/rest/margin-trading/margin-trading-v3-/get-cross-isolated-margin-interest-records

Param Type Required Description
code string Yes unified currency code
since int No timestamp for the earliest borrow rate
limit int No the maximum number of borrow rate structures to retrieve
params object No extra parameters specific to the exchange API endpoint
params.marginMode string No 'cross' or 'isolated' default is 'cross'
params.until int No the latest time in ms to fetch entries for
kucoin.fetchBorrowRateHistory (code[, since, limit, params])

borrowCrossMargin{docsify-ignore}

create a loan to borrow margin

Kind: instance method of kucoin
Returns: object - a margin loan structure

See: https://docs.kucoin.com/#1-margin-borrowing

Param Type Required Description
code string Yes unified currency code of the currency to borrow
amount float Yes the amount to borrow
params object No extra parameters specific to the exchange API endpoints
params.timeInForce string No either IOC or FOK
kucoin.borrowCrossMargin (code, amount[, params])

borrowIsolatedMargin{docsify-ignore}

create a loan to borrow margin

Kind: instance method of kucoin
Returns: object - a margin loan structure

See: https://docs.kucoin.com/#1-margin-borrowing

Param Type Required Description
symbol string Yes unified market symbol, required for isolated margin
code string Yes unified currency code of the currency to borrow
amount float Yes the amount to borrow
params object No extra parameters specific to the exchange API endpoints
params.timeInForce string No either IOC or FOK
kucoin.borrowIsolatedMargin (symbol, code, amount[, params])

repayCrossMargin{docsify-ignore}

repay borrowed margin and interest

Kind: instance method of kucoin
Returns: object - a margin loan structure

See: https://docs.kucoin.com/#2-repayment

Param Type Required Description
code string Yes unified currency code of the currency to repay
amount float Yes the amount to repay
params object No extra parameters specific to the exchange API endpoints
kucoin.repayCrossMargin (code, amount[, params])

repayIsolatedMargin{docsify-ignore}

repay borrowed margin and interest

Kind: instance method of kucoin
Returns: object - a margin loan structure

See: https://docs.kucoin.com/#2-repayment

Param Type Required Description
symbol string Yes unified market symbol
code string Yes unified currency code of the currency to repay
amount float Yes the amount to repay
params object No extra parameters specific to the exchange API endpoints
kucoin.repayIsolatedMargin (symbol, code, amount[, params])

fetchDepositWithdrawFees{docsify-ignore}

fetch deposit and withdraw fees - IMPORTANT use fetchDepositWithdrawFee to get more in-depth info

Kind: instance method of kucoin
Returns: object - a list of fee structures

See: https://docs.kucoin.com/#get-currencies

Param Type Required Description
codes Array<string>, undefined Yes list of unified currency codes
params object No extra parameters specific to the exchange API endpoint
kucoin.fetchDepositWithdrawFees (codes[, params])

setLeverage{docsify-ignore}

set the level of leverage for a market

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

See: https://www.kucoin.com/docs/rest/margin-trading/margin-trading-v3-/modify-leverage-multiplier

Param Type Required Description
leverage int No New leverage multiplier. Must be greater than 1 and up to two decimal places, and cannot be less than the user's current debt leverage or greater than the system's maximum leverage
symbol string No unified market symbol
params object No extra parameters specific to the exchange API endpoint
kucoin.setLeverage ([leverage, symbol, params])

watchTicker{docsify-ignore}

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

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

See: https://www.kucoin.com/docs/websocket/spot-trading/public-channels/market-snapshot

Param Type Required Description
symbol string Yes unified symbol of the market to fetch the ticker for
params object No extra parameters specific to the exchange API endpoint
kucoin.watchTicker (symbol[, params])

unWatchTicker{docsify-ignore}

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

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

See: https://www.kucoin.com/docs/websocket/spot-trading/public-channels/market-snapshot

Param Type Required Description
symbol string Yes unified symbol of the market to fetch the ticker for
params object No extra parameters specific to the exchange API endpoint
kucoin.unWatchTicker (symbol[, params])

watchTickers{docsify-ignore}

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 kucoin
Returns: object - a ticker structure

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

Param Type Required Description
symbols Array<string> Yes unified symbol of the market to fetch the ticker for
params object No extra parameters specific to the exchange API endpoint
params.method string No either '/market/snapshot' or '/market/ticker' default is '/market/ticker'
kucoin.watchTickers (symbols[, params])

watchBidsAsks{docsify-ignore}

watches best bid & ask for symbols

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

See: https://www.kucoin.com/docs/websocket/spot-trading/public-channels/level1-bbo-market-data

Param Type Required Description
symbols Array<string> Yes unified symbol of the market to fetch the ticker for
params object No extra parameters specific to the exchange API endpoint
kucoin.watchBidsAsks (symbols[, params])

watchOHLCV{docsify-ignore}

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

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

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

Param Type Required Description
symbol string Yes unified symbol of the market to fetch OHLCV data for
timeframe string Yes the length of time each candle represents
since int No timestamp in ms of the earliest candle to fetch
limit int No the maximum amount of candles to fetch
params object No extra parameters specific to the exchange API endpoint
kucoin.watchOHLCV (symbol, timeframe[, since, limit, params])

unWatchOHLCV{docsify-ignore}

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

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

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

Param Type Required Description
symbol string Yes unified symbol of the market to fetch OHLCV data for
timeframe string Yes the length of time each candle represents
params object No extra parameters specific to the exchange API endpoint
kucoin.unWatchOHLCV (symbol, timeframe[, params])

watchTrades{docsify-ignore}

get the list of most recent trades for a particular symbol

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

See: https://www.kucoin.com/docs/websocket/spot-trading/public-channels/match-execution-data

Param Type Required Description
symbol string Yes unified symbol of the market to fetch trades for
since int No timestamp in ms of the earliest trade to fetch
limit int No the maximum amount of trades to fetch
params object No extra parameters specific to the exchange API endpoint
kucoin.watchTrades (symbol[, since, limit, params])

watchTradesForSymbols{docsify-ignore}

get the list of most recent trades for a particular symbol

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

See: https://www.kucoin.com/docs/websocket/spot-trading/public-channels/match-execution-data

Param Type Required Description
symbols Array<string> Yes
since int No timestamp in ms of the earliest trade to fetch
limit int No the maximum amount of trades to fetch
params object No extra parameters specific to the exchange API endpoint
kucoin.watchTradesForSymbols (symbols[, since, limit, params])

unWatchTradesForSymbols{docsify-ignore}

unWatches trades stream

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

See: https://www.kucoin.com/docs/websocket/spot-trading/public-channels/match-execution-data

Param Type Required Description
symbols string Yes
params object No extra parameters specific to the exchange API endpoint
kucoin.unWatchTradesForSymbols (symbols[, params])

unWatchTrades{docsify-ignore}

unWatches trades stream

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

See: https://www.kucoin.com/docs/websocket/spot-trading/public-channels/match-execution-data

Param Type Required Description
symbol string Yes unified symbol of the market to fetch trades for
params object No extra parameters specific to the exchange API endpoint
kucoin.unWatchTrades (symbol[, params])

watchOrderBook{docsify-ignore}

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

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

See

Param Type Required Description
symbol string Yes unified symbol of the market to fetch the order book for
limit int No the maximum amount of order book entries to return
params object No extra parameters specific to the exchange API endpoint
params.method string No either '/market/level2' or '/spotMarket/level2Depth5' or '/spotMarket/level2Depth50' default is '/market/level2'
kucoin.watchOrderBook (symbol[, limit, params])

unWatchOrderBook{docsify-ignore}

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

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

See

Param Type Required Description
symbol string Yes unified symbol of the market to fetch the order book for
params object No extra parameters specific to the exchange API endpoint
params.method string No either '/market/level2' or '/spotMarket/level2Depth5' or '/spotMarket/level2Depth50' default is '/market/level2'
kucoin.unWatchOrderBook (symbol[, params])

watchOrderBookForSymbols{docsify-ignore}

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

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

See

Param Type Required Description
symbols Array<string> Yes unified array of symbols
limit int No the maximum amount of order book entries to return
params object No extra parameters specific to the exchange API endpoint
params.method string No either '/market/level2' or '/spotMarket/level2Depth5' or '/spotMarket/level2Depth50' default is '/market/level2'
kucoin.watchOrderBookForSymbols (symbols[, limit, params])

unWatchOrderBookForSymbols{docsify-ignore}

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

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

See

Param Type Required Description
symbols Array<string> Yes unified array of symbols
params object No extra parameters specific to the exchange API endpoint
params.method string No either '/market/level2' or '/spotMarket/level2Depth5' or '/spotMarket/level2Depth50' default is '/market/level2'
kucoin.unWatchOrderBookForSymbols (symbols[, params])

watchOrders{docsify-ignore}

watches information on multiple orders made by the user

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

See

Param Type Required Description
symbol string Yes unified market symbol of the market orders were made in
since int No the earliest time in ms to fetch orders for
limit int No the maximum number of order structures to retrieve
params object No extra parameters specific to the exchange API endpoint
params.trigger boolean No trigger orders are watched if true
kucoin.watchOrders (symbol[, since, limit, params])

watchMyTrades{docsify-ignore}

watches information on multiple trades made by the user

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

See: https://www.kucoin.com/docs/websocket/spot-trading/private-channels/private-order-change

Param Type Required Description
symbol string Yes unified market symbol of the market trades were made in
since int No the earliest time in ms to fetch trades for
limit int No the maximum number of trade structures to retrieve
params object No extra parameters specific to the exchange API endpoint
params.method string No '/spotMarket/tradeOrders' or '/spot/tradeFills' default is '/spotMarket/tradeOrders'
kucoin.watchMyTrades (symbol[, since, limit, params])

watchBalance{docsify-ignore}

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

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

See: https://www.kucoin.com/docs/websocket/spot-trading/private-channels/account-balance-change

Param Type Required Description
params object No extra parameters specific to the exchange API endpoint
kucoin.watchBalance ([params])