I am new to the scene. I trying to get my test account balance but getting error message incorrect api. please see my code below? What is it i am doing wrong here?
const Binance = require(“node-binance-api”);
const binance = new Binance().options({
APIKEY : ‘’,
APISECRET : ',
useServerTime: true,
test:true
});
// const indicators = require("./indicators.js");
// const exchange = require("./exchange");
binance.balance((error, balances) => {
if ( error ) return console.error(error);
console.info(“balances()”, balances);
console.info("ETH balance: ", balances.ETH.available);
});
Error message is this :
body: ‘{“code”:-2015,“msg”:“Invalid API-key, IP, or permissions for action.”}’,
[Symbol(kCapture)]: false,
[Symbol(RequestTimeout)]: undefined
Thanks in advance