Gathering detailed insights and metrics for open-binance-api
Gathering detailed insights and metrics for open-binance-api
Gathering detailed insights and metrics for open-binance-api
Gathering detailed insights and metrics for open-binance-api
npm install open-binance-api
Typescript
Module System
Node Version
NPM Version
61.9
Supply Chain
92.7
Quality
71.8
Maintenance
25
Vulnerability
98.2
License
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
22.2%
11
Compared to previous week
Last Month
14.7%
39
Compared to previous month
Last Year
-27.2%
509
Compared to previous year
Donate: TRC20 - Tether(USDT) - TFacXQTfHGYv9Vcyp64egx1VNt4ycnfj8m
NodeJS Binance API Client
npm i open-binance-api
1const OpenBinance = require("open-binance-api"); 2 3let OBinance = new OpenBinance( 4 "API_KEY", 5 6 "SECRET_KEY" 7);
1await OBinance.assetDetail() 2 .then((result) => { 3 console.log("assetDetail Result", result); 4 }) 5 .catch((err) => { 6 console.log("assetDetail Error: ", err); 7 });
1OBinance.universalTransfer("MAIN_FUNDING", "USDT", 10) 2 .then((result) => { 3 console.log("universalTransfer Result", result); 4 }) 5 .catch((err) => { 6 console.log("universalTransfer Error: ", err); 7 });
1OBinance.getUserAsset() 2 .then((result) => { 3 console.log("getUserAsset Result", result); 4 }) 5 .catch((err) => { 6 console.log("getUserAsset Error: ", err); 7 });
1OBinance.apiRestrictions() 2 .then((result) => { 3 console.log("apiRestrictions Result", result); 4 }) 5 .catch((err) => { 6 console.log("apiRestrictions Error: ", err); 7 });
1OBinance.tradeFee("BTCUSDT") 2 .then((result) => { 3 console.log("tradeFee Result", result); 4 }) 5 .catch((err) => { 6 console.log("tradeFee Error: ", err); 7 });
1OBinance.ping() 2 .then((result) => { 3 console.log("ping Result:", result); 4 }) 5 .catch((err) => { 6 console.log("ping Error: ", err); 7 });
1OBinance.checkServerTime() 2 .then((result) => { 3 console.log("checkServerTime Result:", result); 4 }) 5 .catch((err) => { 6 console.log("checkServerTime Error: ", err); 7 });
1OBinance.exchangeInfo() 2 .then((result) => { 3 console.log("exchangeInfo Result:", result); 4 }) 5 .catch((err) => { 6 console.log("exchangeInfo Error: ", err); 7 });
1OBinance.depth("BTCUSDT") 2 .then((result) => { 3 console.log("depth Result:", result); 4 }) 5 .catch((err) => { 6 console.log("depth Error: ", err); 7 });
1OBinance.trades("BTCUSDT") 2 .then((result) => { 3 console.log("trades Result:", result); 4 }) 5 .catch((err) => { 6 console.log("trades Error: ", err); 7 });
1OBinance.aggTrades("BTCUSDT") 2 .then((result) => { 3 console.log("aggTrades Result:", result); 4 }) 5 .catch((err) => { 6 console.log("aggTrades Error: ", err); 7 });
1OBinance.klines("BTCUSDT") 2 .then((result) => { 3 console.log("klines Result:", result); 4 }) 5 .catch((err) => { 6 console.log("klines Error: ", err); 7 });
1OBinance.avgPrice("BTCUSDT") 2 .then((result) => { 3 console.log("avgPrice Result:", result); 4 }) 5 .catch((err) => { 6 console.log("avgPrice Error: ", err); 7 });
1OBinance.tickerPrice24hr(["BTCUSDT"]) 2 .then((result) => { 3 console.log("tickerPrice24hr Result:", result); 4 }) 5 .catch((err) => { 6 console.log("tickerPrice24hr Error: ", err); 7 });
1OBinance.latestPrice(["BTCUSDT"]) 2 .then((result) => { 3 console.log("latestPrice Result:", result); 4 }) 5 .catch((err) => { 6 console.log("latestPrice Error: ", err); 7 });
1OBinance.bookTicker(["BTCUSDT"]) 2 .then((result) => { 3 console.log("bookTicker Result:", result); 4 }) 5 .catch((err) => { 6 console.log("bookTicker Error: ", err); 7 });
1OBinance.computeStatistics(["BTCUSDT"]) 2 .then((result) => { 3 console.log("computeStatistics Result:", result); 4 }) 5 .catch((err) => { 6 console.log("computeStatistics Error: ", err); 7 });
1OBinance.testNewOrder("BTCUSDT", "BUY", "LIMIT", 0.001, "GTC") 2 .then((result) => { 3 console.log("testNewOrder Result:", result); 4 }) 5 .catch((err) => { 6 console.log("testNewOrder Error: ", err); 7 });
1OBinance.spotMarketBuy("BTCUSDT", 0.001) 2 .then((result) => { 3 console.log("spotMarketBuy Result:", result); 4 }) 5 .catch((err) => { 6 console.log("spotMarketBuy Error: ", err); 7 });
1OBinance.spotMarketSell("BTCUSDT", 0.001) 2 .then((result) => { 3 console.log("spotMarketSell Result:", result); 4 }) 5 .catch((err) => { 6 console.log("spotMarketSell Error: ", err); 7 });
1OBinance.spotLimitBuy("BTCUSDT", 0.001, 24000) 2 .then((result) => { 3 console.log("spotLimitBuy Result:", result); 4 }) 5 .catch((err) => { 6 console.log("spotLimitBuy Error: ", err); 7 });
1OBinance.spotLimitSell("BTCUSDT", 0.001, 24000) 2 .then((result) => { 3 console.log("spotLimitSell Result:", result); 4 }) 5 .catch((err) => { 6 console.log("spotLimitSell Error: ", err); 7 });
1OBinance.spotCancelOrder("BTCUSDT", 123456) 2 .then((result) => { 3 console.log("spotCancelOrder Result:", result); 4 }) 5 .catch((err) => { 6 console.log("spotMarkspotCancelOrderetBuy Error: ", err); 7 });
1OBinance.spotCancelAllOrders("BTCUSDT") 2 .then((result) => { 3 console.log("spotCancelAllOrders Result:", result); 4 }) 5 .catch((err) => { 6 console.log("spotCancelAllOrders Error: ", err); 7 });
1OBinance.getOrder("BTCUSDT", 123456) 2 .then((result) => { 3 console.log("getOrder Result:", result); 4 }) 5 .catch((err) => { 6 console.log("getOrder Error: ", err); 7 });
1OBinance.myTrades("BTCUSDT") 2 .then((result) => { 3 console.log("myTrades Result:", result); 4 }) 5 .catch((err) => { 6 console.log("myTrades Error: ", err); 7 });
1OBinance.rateLimitOrder() 2 .then((result) => { 3 console.log("rateLimitOrder Result:", result); 4 }) 5 .catch((err) => { 6 console.log("rateLimitOrder Error: ", err); 7 });
1OBinance.myPreventedMatches("BTCUSDT", { orderId: 1111 }) 2 .then((result) => { 3 console.log("myPreventedMatches Result:", result); 4 }) 5 .catch((err) => { 6 console.log("myPreventedMatches Error: ", err); 7 });
No vulnerabilities found.