KuCoin API SDK for Node.js language
Nodejs version >= 10.0
# install by npm
npm install kucoin-node-sdk
# install by yarn
yarn add kucoin-node-sdk
/** Require SDK */
const API = require('kucoin-node-sdk');
/** Init Configure */
API.init(require('./config'));
/** API use */
const main = async () => {
const getTimestampRl = await API.rest.Others.getTimestamp();
console.log(getTimestampRl.data);
};
/** Run Demo */
main();
Signature is required for this part.
- getSubUsers
- createAccount
- getAccountsList
- getAccountInformation
- getAccountLedgers
- getHolds
- getBalanceOfSubAccount
- getAggregatedBalanceOfAllSubAccounts
- getTransferable
- transferBetweenMasterUserAndSubUser
- innerTransfer
- createDepositAddress
- getDepositAddress
- getDepositList
- getV1HistoricalDepositsList
- getWithdrawalsList
- getV1HistoricalWithdrawalsList
- getWithdrawalQuotas
- applyWithdraw
- cancelWithdrawal
- getBasicUserFee
- getActualFeeRateBySymbols
Signature is required for this part.
- postOrder
- postMultiOrders
- cancelOrder
- cancelOrderByClientOid
- cancelAllOrders
- getOrdersList
- getV1HistoricalOrdersList
- getRecentOrders
- getOrderByID
- getSingleActiveOrderByClientOid
- postStopOrder
- cancelOrder
- cancelMultiOrders
- getOrder
- getStopOrderList
- getOrderByClientOid
- cancelSingleOrderByClientOid
- getFillsList
- getRecentFills
Signature is not required for this part
- getSymbolsList
- getTicker
- getAllTickers
- get24hrStats
- getMarketList
- getLevel2_20
- getLevel2_100
- getLevel2_full
- getLevel3_full
- getMarketHistories
- getMarketCandles
- getCurrencies
- getCurrencyDetail
- getFiatPrice
- getMarkPrice
- getMarginConfigurationInfo
- getMarginAccount
- postBorrowOrder
- getBorrowOrder
- getRepayRecord
- getRepaymentRecord
- repayAll
- repaySingle
- postLendOrder
- cancelLendOrder
- setAutoLend
- getActiveOrder
- getLentHistory
- getActiveLendOrdersList
- getSettledLendOrderHistory
- getAccountLendRecord
- getLendingMarketData
- getMarginFillsTradeData
- getTimestamp
- getStatus
Manage websocket connect/private/subscribe/unsubscribe and get realtime datafeed.
DEMO: demo/ticker_demo.js
Get realtime orderbook in level2 datafeed.
DEMO: demo/level2_demo.js
// TODO