New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-kocoin-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-kocoin-wrapper

KuCoin API SDK for Node.js language

  • 1.0.0
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

kucoin-node-sdk

KuCoin API SDK for Node.js language

Env

Nodejs version >= 10.0

Install

# install by npm
npm install kucoin-node-sdk


# install by yarn
yarn add kucoin-node-sdk

Usage

/** 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();

Init Configure

{
  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.
}

API Modules

Rest/User

Signature is required for this part.
Rest/User/UserInfo
  • getSubUsers
Rest/User/Account
  • createAccount
  • getAccountsList
  • getAccountInformation
  • getAccountLedgers
  • getHolds
  • getBalanceOfSubAccount
  • getAggregatedBalanceOfAllSubAccounts
  • getTransferable
  • transferBetweenMasterUserAndSubUser
  • innerTransfer
Rest/User/Deposit
  • createDepositAddress
  • getDepositAddressV2
  • getDepositAddress
  • getDepositList
  • getV1HistoricalDepositsList
Rest/User/Withdrawals
  • getWithdrawalsList
  • getV1HistoricalWithdrawalsList
  • getWithdrawalQuotas
  • applyWithdraw
  • cancelWithdrawal
Rest/User/TradeFee
  • getBasicUserFee
  • getActualFeeRateBySymbols

Rest/Trade

Signature is required for this part.
Rest/Trade/Orders
  • postOrder
  • postMultiOrders
  • cancelOrder
  • cancelOrderByClientOid
  • cancelAllOrders
  • getOrdersList
  • getV1HistoricalOrdersList
  • getRecentOrders
  • getOrderByID
  • getSingleActiveOrderByClientOid
Rest/Trade/StopOrder
  • postStopOrder
  • cancelOrder
  • cancelMultiOrders
  • getOrder
  • getStopOrderList
  • getOrderByClientOid
  • cancelSingleOrderByClientOid
Rest/Trade/Fills
  • getFillsList
  • getRecentFills

Rest/Market

Signature is not required for this part
Rest/Market/Symbols
  • getSymbolsList
  • getTicker
  • getAllTickers
  • get24hrStats
  • getMarketList
Rest/Market/OrderBook
  • getLevel2_20
  • getLevel2_100
  • getLevel2_full
  • getLevel3_full
Rest/Market/Histories
  • getMarketHistories
  • getMarketCandles
Rest/Market/Currencies
  • getCurrencies
  • getCurrencyDetail
  • getFiatPrice
Rest/Margin/MarginInfo
  • getMarkPrice
  • getMarginConfigurationInfo
  • getMarginAccount
  • postMarginOrder
  • getMarginPriceStrategy
Rest/Margin/BorrowAndLend
  • postBorrowOrder
  • getBorrowOrder
  • getRepayRecord
  • getRepaymentRecord
  • repayAll
  • repaySingle
  • postLendOrder
  • cancelLendOrder
  • setAutoLend
  • getActiveOrder
  • getLentHistory
  • getActiveLendOrdersList
  • getSettledLendOrderHistory
  • getAccountLendRecord
  • getLendingMarketData
  • getMarginFillsTradeData
Rest/Others
  • getTimestamp
  • getStatus

Websocket Datafeed

API.websocket.Datafeed

Manage websocket connect/private/subscribe/unsubscribe and get realtime datafeed.

DEMO: demo/ticker_demo.js

API.websocket.Level2

Get realtime orderbook in level2 datafeed.

DEMO: demo/level2_demo.js

API.websocket.Level3

// TODO

LICENSE

Apache-2.0 License

FAQs

Package last updated on 25 Apr 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc