Package Exports
- open-binance-api
- open-binance-api/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (open-binance-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Binance Api Client
NodeJS Binance API Client
Install
npm i open-binance-api
Usage
const OpenBinance = require("open-binance-api");
let OBinance = new OpenBinance(
"API_KEY",
"SECRET_KEY"
);
Account/Wallet
Get Api Restrictions
OBinance.apiRestrictions().then((result) => {
console.log("apiRestrictions Result", result);
}).catch((err) => {
console.log("apiRestrictions Error: ", err);
});Get Trade Fee
OBinance.tradeFee("BTCUSDT").then((result) => {
console.log("tradeFee Result", result);
}).catch((err) => {
console.log("tradeFee Error: ", err);
});