
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
kucoin-node-sdk
Advanced tools
KuCoin API SDK for Node.js language
The detailed document https://docs.kucoin.com.
Nodejs version >= 10.0
# install by npm
npm install kucoin-node-sdk
# install by yarn
yarn add kucoin-node-sdk
module.exports = {
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.
};
You can use baseUrl method to change evironment.
| Environment | BaseUri |
|---|---|
Production DEFAULT | https://openapi-v2.kucoin.com |
| Sandbox | https://openapi-sandbox.kucoin.com |
If you only need to use the public web socket client or REST client public method, you can igonre withApiKey method. To customize your own API implementation, you may use the with*API method we provided for you.
/** 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 for all apis */
REST API: yarn dev
SW: yarn dev-ws (you can opt the params for different sw demo in demo,such as follow exp)
"dev-ws": "cross-env PRODUCTION=dev nodemon demo/xxx_demo.js",
DEMO: demo/index.js
Signature is required for this part.
Signature is required for this part.
Signature is not required for this part
marginBorrowV3
getBorrowHistoryV3
repayMarginLoanV3
getRepayHistoryV3
getMarginInterestRecordsV3
getLendingCurrencyInfoV3
getMarketInterestRateV3
initiatePurchaseV3
getPurchaseOrdersV3
redeemMarketV3
getRedemptionOrdersV3
updatePurchaseOrderInterestRateV3
getCrossMarginTradingPairs
updateLeverageMultiplier
placeHfMarginOrder
testHfMarginOrder
cancelHfMarginOrder
cancelHfMarginOrderByClientOid
cancelAllHfMarginOrdersBySymbol
getActiveHfMarginOrders
getFilledHfMarginOrders
getHfOrderDetails
getHfOrderDetailsByClientOid
getHfTransactionRecords
getActiveHfOrderSymbols
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
yarn test
// TODO
FAQs
KuCoin API SDK for Node.js language
The npm package kucoin-node-sdk receives a total of 241 weekly downloads. As such, kucoin-node-sdk popularity was classified as not popular.
We found that kucoin-node-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.