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();
{
baseUrl: '',
apiAuth: {
key: '', // KC-API-KEY
secret: '', // API-Secret
passphrase: '', // KC-API-PASSPHRASE
},
authVersion: 2, // KC-API-KEY-VERSION. Notice: for v2 API-KEY, not required for v1 version.
}
Signature is required for this part.
- getSubUsers
- createAccount
- getAccountsList
- getAccountInformation
- getAccountLedgers
- getHolds
- getBalanceOfSubAccount
- getAggregatedBalanceOfAllSubAccounts
- getTransferable
- transferBetweenMasterUserAndSubUser
- innerTransfer
- createDepositAddress
- getDepositAddressV2
- 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
- postMarginOrder
- getMarginPriceStrategy
- 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