Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

binance-api-node

Package Overview
Dependencies
Maintainers
1
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binance-api-node - npm Package Compare versions

Comparing version 0.10.42 to 0.10.43

302

dist/http-client.js

@@ -323,2 +323,4 @@ "use strict";

var _default = function _default(opts) {
var _ref5;
var endpoints = {

@@ -338,3 +340,3 @@ base: opts && opts.httpBase || BASE,

}));
return {
return _ref5 = {
getInfo: function getInfo() {

@@ -470,180 +472,128 @@ return info;

return privCall('/sapi/v1/asset/transfer', payload);
},
dustTransfer: function dustTransfer(payload) {
return privCall(' /sapi/v1/asset/dust', payload, 'POST');
},
capitalConfigs: function capitalConfigs() {
return privCall('/sapi/v1/capital/config/getall');
},
getDataStream: function getDataStream() {
return privCall('/api/v3/userDataStream', null, 'POST', true);
},
keepDataStream: function keepDataStream(payload) {
return privCall('/api/v3/userDataStream', payload, 'PUT', false, true);
},
closeDataStream: function closeDataStream(payload) {
return privCall('/api/v3/userDataStream', payload, 'DELETE', false, true);
},
marginGetDataStream: function marginGetDataStream() {
return privCall('/sapi/v1/userDataStream', null, 'POST', true);
},
marginKeepDataStream: function marginKeepDataStream(payload) {
return privCall('/sapi/v1/userDataStream', payload, 'PUT', false, true);
},
marginCloseDataStream: function marginCloseDataStream(payload) {
return privCall('/sapi/v1/userDataStream', payload, 'DELETE', false, true);
},
futuresGetDataStream: function futuresGetDataStream() {
return privCall('/fapi/v1/listenKey', null, 'POST', true);
},
futuresKeepDataStream: function futuresKeepDataStream(payload) {
return privCall('/fapi/v1/listenKey', payload, 'PUT', false, true);
},
futuresCloseDataStream: function futuresCloseDataStream(payload) {
return privCall('/fapi/v1/listenKey', payload, 'DELETE', false, true);
},
marginAllOrders: function marginAllOrders(payload) {
return privCall('/sapi/v1/margin/allOrders', payload);
},
marginOrder: function marginOrder(payload) {
return _order(privCall, payload, '/sapi/v1/margin/order');
},
marginCancelOrder: function marginCancelOrder(payload) {
return privCall('/sapi/v1/margin/order', payload, 'DELETE');
},
marginOpenOrders: function marginOpenOrders(payload) {
return privCall('/sapi/v1/margin/openOrders', payload);
},
marginAccountInfo: function marginAccountInfo(payload) {
return privCall('/sapi/v1/margin/account', payload);
},
marginMyTrades: function marginMyTrades(payload) {
return privCall('/sapi/v1/margin/myTrades', payload);
},
marginRepay: function marginRepay(payload) {
return privCall('/sapi/v1/margin/repay', payload, 'POST');
},
marginLoan: function marginLoan(payload) {
return privCall('/sapi/v1/margin/loan', payload, 'POST');
},
marginIsolatedAccount: function marginIsolatedAccount(payload) {
return privCall('/sapi/v1/margin/isolated/account', payload);
},
marginMaxBorrow: function marginMaxBorrow(payload) {
return privCall('/sapi/v1/margin/maxBorrowable', payload);
},
marginCreateIsolated: function marginCreateIsolated(payload) {
return privCall('/sapi/v1/margin/isolated/create', payload, 'POST');
},
marginIsolatedTransfer: function marginIsolatedTransfer(payload) {
return privCall('/sapi/v1/margin/isolated/transfer', payload, 'POST');
},
marginIsolatedTransferHistory: function marginIsolatedTransferHistory(payload) {
return privCall('/sapi/v1/margin/isolated/transfer', payload);
},
futuresPing: function futuresPing() {
return pubCall('/fapi/v1/ping').then(function () {
return true;
});
},
futuresTime: function futuresTime() {
return pubCall('/fapi/v1/time').then(function (r) {
return r.serverTime;
});
},
futuresExchangeInfo: function futuresExchangeInfo() {
return pubCall('/fapi/v1/exchangeInfo');
},
futuresBook: function futuresBook(payload) {
return _book(pubCall, payload, '/fapi/v1/depth');
},
futuresAggTrades: function futuresAggTrades(payload) {
return _aggTrades(pubCall, payload, '/fapi/v1/aggTrades');
},
futuresMarkPrice: function futuresMarkPrice(payload) {
return pubCall('/fapi/v1/premiumIndex', payload);
},
futuresAllForceOrders: function futuresAllForceOrders(payload) {
return pubCall('/fapi/v1/allForceOrders', payload);
},
futuresLongShortRatio: function futuresLongShortRatio(payload) {
return pubCall('/futures/data/globalLongShortAccountRatio', payload);
},
futuresCandles: function futuresCandles(payload) {
return _candles(pubCall, payload, '/fapi/v1/klines');
},
futuresTrades: function futuresTrades(payload) {
return checkParams('trades', payload, ['symbol']) && pubCall('/fapi/v1/trades', payload);
},
futuresDailyStats: function futuresDailyStats(payload) {
return pubCall('/fapi/v1/ticker/24hr', payload);
},
futuresPrices: function futuresPrices() {
return pubCall('/fapi/v1/ticker/price').then(function (r) {
return (Array.isArray(r) ? r : [r]).reduce(function (out, cur) {
return out[cur.symbol] = cur.price, out;
}, {});
});
},
futuresAllBookTickers: function futuresAllBookTickers() {
return pubCall('/fapi/v1/ticker/bookTicker').then(function (r) {
return (Array.isArray(r) ? r : [r]).reduce(function (out, cur) {
return out[cur.symbol] = cur, out;
}, {});
});
},
futuresFundingRate: function futuresFundingRate(payload) {
return checkParams('fundingRate', payload, ['symbol']) && pubCall('/fapi/v1/fundingRate', payload);
},
futuresOrder: function futuresOrder(payload) {
return _order(privCall, payload, '/fapi/v1/order');
},
futuresGetOrder: function futuresGetOrder(payload) {
return privCall('/fapi/v1/order', payload);
},
futuresCancelOrder: function futuresCancelOrder(payload) {
return privCall('/fapi/v1/order', payload, 'DELETE');
},
futuresOpenOrders: function futuresOpenOrders(payload) {
return privCall('/fapi/v1/openOrders', payload);
},
futuresAllOrders: function futuresAllOrders(payload) {
return privCall('/fapi/v1/allOrders', payload);
},
futuresPositionRisk: function futuresPositionRisk(payload) {
return privCall('/fapi/v2/positionRisk', payload);
},
futuresAccountBalance: function futuresAccountBalance(payload) {
return privCall('/fapi/v2/balance', payload);
},
futuresAccountInfo: function futuresAccountInfo(payload) {
return privCall('/fapi/v2/account', payload);
},
futuresUserTrades: function futuresUserTrades(payload) {
return privCall('/fapi/v1/userTrades', payload);
},
futuresPositionMode: function futuresPositionMode(payload) {
return privCall('/fapi/v1/positionSide/dual', payload);
},
futuresPositionModeChange: function futuresPositionModeChange(payload) {
return privCall('/fapi/v1/positionSide/dual', payload, 'POST');
},
futuresLeverage: function futuresLeverage(payload) {
return privCall('/fapi/v1/leverage', payload, 'POST');
},
futuresMarginType: function futuresMarginType(payload) {
return privCall('/fapi/v1/marginType', payload, 'POST');
},
futuresPositionMargin: function futuresPositionMargin(payload) {
return privCall('/fapi/v1/positionMargin', payload, 'POST');
},
futuresMarginHistory: function futuresMarginHistory(payload) {
return privCall('/fapi/v1/positionMargin/history', payload);
},
futuresIncome: function futuresIncome(payload) {
return privCall('/fapi/v1/income', payload);
}
};
}, _defineProperty(_ref5, "assetDetail", function assetDetail(payload) {
return privCall('/sapi/v1/asset/assetDetail', payload);
}), _defineProperty(_ref5, "dustTransfer", function dustTransfer(payload) {
return privCall(' /sapi/v1/asset/dust', payload, 'POST');
}), _defineProperty(_ref5, "capitalConfigs", function capitalConfigs() {
return privCall('/sapi/v1/capital/config/getall');
}), _defineProperty(_ref5, "getDataStream", function getDataStream() {
return privCall('/api/v3/userDataStream', null, 'POST', true);
}), _defineProperty(_ref5, "keepDataStream", function keepDataStream(payload) {
return privCall('/api/v3/userDataStream', payload, 'PUT', false, true);
}), _defineProperty(_ref5, "closeDataStream", function closeDataStream(payload) {
return privCall('/api/v3/userDataStream', payload, 'DELETE', false, true);
}), _defineProperty(_ref5, "marginGetDataStream", function marginGetDataStream() {
return privCall('/sapi/v1/userDataStream', null, 'POST', true);
}), _defineProperty(_ref5, "marginKeepDataStream", function marginKeepDataStream(payload) {
return privCall('/sapi/v1/userDataStream', payload, 'PUT', false, true);
}), _defineProperty(_ref5, "marginCloseDataStream", function marginCloseDataStream(payload) {
return privCall('/sapi/v1/userDataStream', payload, 'DELETE', false, true);
}), _defineProperty(_ref5, "futuresGetDataStream", function futuresGetDataStream() {
return privCall('/fapi/v1/listenKey', null, 'POST', true);
}), _defineProperty(_ref5, "futuresKeepDataStream", function futuresKeepDataStream(payload) {
return privCall('/fapi/v1/listenKey', payload, 'PUT', false, true);
}), _defineProperty(_ref5, "futuresCloseDataStream", function futuresCloseDataStream(payload) {
return privCall('/fapi/v1/listenKey', payload, 'DELETE', false, true);
}), _defineProperty(_ref5, "marginAllOrders", function marginAllOrders(payload) {
return privCall('/sapi/v1/margin/allOrders', payload);
}), _defineProperty(_ref5, "marginOrder", function marginOrder(payload) {
return _order(privCall, payload, '/sapi/v1/margin/order');
}), _defineProperty(_ref5, "marginCancelOrder", function marginCancelOrder(payload) {
return privCall('/sapi/v1/margin/order', payload, 'DELETE');
}), _defineProperty(_ref5, "marginOpenOrders", function marginOpenOrders(payload) {
return privCall('/sapi/v1/margin/openOrders', payload);
}), _defineProperty(_ref5, "marginAccountInfo", function marginAccountInfo(payload) {
return privCall('/sapi/v1/margin/account', payload);
}), _defineProperty(_ref5, "marginMyTrades", function marginMyTrades(payload) {
return privCall('/sapi/v1/margin/myTrades', payload);
}), _defineProperty(_ref5, "marginRepay", function marginRepay(payload) {
return privCall('/sapi/v1/margin/repay', payload, 'POST');
}), _defineProperty(_ref5, "marginLoan", function marginLoan(payload) {
return privCall('/sapi/v1/margin/loan', payload, 'POST');
}), _defineProperty(_ref5, "marginIsolatedAccount", function marginIsolatedAccount(payload) {
return privCall('/sapi/v1/margin/isolated/account', payload);
}), _defineProperty(_ref5, "marginMaxBorrow", function marginMaxBorrow(payload) {
return privCall('/sapi/v1/margin/maxBorrowable', payload);
}), _defineProperty(_ref5, "marginCreateIsolated", function marginCreateIsolated(payload) {
return privCall('/sapi/v1/margin/isolated/create', payload, 'POST');
}), _defineProperty(_ref5, "marginIsolatedTransfer", function marginIsolatedTransfer(payload) {
return privCall('/sapi/v1/margin/isolated/transfer', payload, 'POST');
}), _defineProperty(_ref5, "marginIsolatedTransferHistory", function marginIsolatedTransferHistory(payload) {
return privCall('/sapi/v1/margin/isolated/transfer', payload);
}), _defineProperty(_ref5, "futuresPing", function futuresPing() {
return pubCall('/fapi/v1/ping').then(function () {
return true;
});
}), _defineProperty(_ref5, "futuresTime", function futuresTime() {
return pubCall('/fapi/v1/time').then(function (r) {
return r.serverTime;
});
}), _defineProperty(_ref5, "futuresExchangeInfo", function futuresExchangeInfo() {
return pubCall('/fapi/v1/exchangeInfo');
}), _defineProperty(_ref5, "futuresBook", function futuresBook(payload) {
return _book(pubCall, payload, '/fapi/v1/depth');
}), _defineProperty(_ref5, "futuresAggTrades", function futuresAggTrades(payload) {
return _aggTrades(pubCall, payload, '/fapi/v1/aggTrades');
}), _defineProperty(_ref5, "futuresMarkPrice", function futuresMarkPrice(payload) {
return pubCall('/fapi/v1/premiumIndex', payload);
}), _defineProperty(_ref5, "futuresAllForceOrders", function futuresAllForceOrders(payload) {
return pubCall('/fapi/v1/allForceOrders', payload);
}), _defineProperty(_ref5, "futuresLongShortRatio", function futuresLongShortRatio(payload) {
return pubCall('/futures/data/globalLongShortAccountRatio', payload);
}), _defineProperty(_ref5, "futuresCandles", function futuresCandles(payload) {
return _candles(pubCall, payload, '/fapi/v1/klines');
}), _defineProperty(_ref5, "futuresTrades", function futuresTrades(payload) {
return checkParams('trades', payload, ['symbol']) && pubCall('/fapi/v1/trades', payload);
}), _defineProperty(_ref5, "futuresDailyStats", function futuresDailyStats(payload) {
return pubCall('/fapi/v1/ticker/24hr', payload);
}), _defineProperty(_ref5, "futuresPrices", function futuresPrices() {
return pubCall('/fapi/v1/ticker/price').then(function (r) {
return (Array.isArray(r) ? r : [r]).reduce(function (out, cur) {
return out[cur.symbol] = cur.price, out;
}, {});
});
}), _defineProperty(_ref5, "futuresAllBookTickers", function futuresAllBookTickers() {
return pubCall('/fapi/v1/ticker/bookTicker').then(function (r) {
return (Array.isArray(r) ? r : [r]).reduce(function (out, cur) {
return out[cur.symbol] = cur, out;
}, {});
});
}), _defineProperty(_ref5, "futuresFundingRate", function futuresFundingRate(payload) {
return checkParams('fundingRate', payload, ['symbol']) && pubCall('/fapi/v1/fundingRate', payload);
}), _defineProperty(_ref5, "futuresOrder", function futuresOrder(payload) {
return _order(privCall, payload, '/fapi/v1/order');
}), _defineProperty(_ref5, "futuresGetOrder", function futuresGetOrder(payload) {
return privCall('/fapi/v1/order', payload);
}), _defineProperty(_ref5, "futuresCancelOrder", function futuresCancelOrder(payload) {
return privCall('/fapi/v1/order', payload, 'DELETE');
}), _defineProperty(_ref5, "futuresOpenOrders", function futuresOpenOrders(payload) {
return privCall('/fapi/v1/openOrders', payload);
}), _defineProperty(_ref5, "futuresAllOrders", function futuresAllOrders(payload) {
return privCall('/fapi/v1/allOrders', payload);
}), _defineProperty(_ref5, "futuresPositionRisk", function futuresPositionRisk(payload) {
return privCall('/fapi/v2/positionRisk', payload);
}), _defineProperty(_ref5, "futuresAccountBalance", function futuresAccountBalance(payload) {
return privCall('/fapi/v2/balance', payload);
}), _defineProperty(_ref5, "futuresAccountInfo", function futuresAccountInfo(payload) {
return privCall('/fapi/v2/account', payload);
}), _defineProperty(_ref5, "futuresUserTrades", function futuresUserTrades(payload) {
return privCall('/fapi/v1/userTrades', payload);
}), _defineProperty(_ref5, "futuresPositionMode", function futuresPositionMode(payload) {
return privCall('/fapi/v1/positionSide/dual', payload);
}), _defineProperty(_ref5, "futuresPositionModeChange", function futuresPositionModeChange(payload) {
return privCall('/fapi/v1/positionSide/dual', payload, 'POST');
}), _defineProperty(_ref5, "futuresLeverage", function futuresLeverage(payload) {
return privCall('/fapi/v1/leverage', payload, 'POST');
}), _defineProperty(_ref5, "futuresMarginType", function futuresMarginType(payload) {
return privCall('/fapi/v1/marginType', payload, 'POST');
}), _defineProperty(_ref5, "futuresPositionMargin", function futuresPositionMargin(payload) {
return privCall('/fapi/v1/positionMargin', payload, 'POST');
}), _defineProperty(_ref5, "futuresMarginHistory", function futuresMarginHistory(payload) {
return privCall('/fapi/v1/positionMargin/history', payload);
}), _defineProperty(_ref5, "futuresIncome", function futuresIncome(payload) {
return privCall('/fapi/v1/income', payload);
}), _ref5;
};
exports.default = _default;
{
"name": "binance-api-node",
"version": "0.10.42",
"version": "0.10.43",
"description": "A node API wrapper for Binance",

@@ -5,0 +5,0 @@ "main": "dist",

Sorry, the diff of this file is too big to display

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