I try using node-binance-api. I've created a key - secretkey pair on binance.com, but I get this error
[Object: null prototype] {
code: -2015,
msg: 'Invalid API-key, IP, or permissions for action, request ip: *myip*'
}
Here is my code :
const key='my key'
const secret='my secret'
const Binance = require('node-binance-api');
const binance = new Binance().options({
APIKEY: key,
APISECRET: secret
});
var f = async () => {
var p = await binance.futuresAccount()
console.log(p)
}
f()