Hi All,
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);
});
Thanks in advance