github binance-exchange/node-binance-api v0.4.5
Stable Release

latest releases: v0.13.0, v0.10.1, v0.9.0...
6 years ago

Added time() and useServerTime options

  1. You can now use the useServerTime option to synchronize with the servers time at startup
  2. You can now pass a callback function to options() which runs after the synchronization is complete
binance.options({
	APIKEY: '<key>',
	APISECRET: '<secret>',
	useServerTime: true
}, main);

function main() {
	binance.balance((error, balances) => {
		if ( error ) {
			console.error(error);
			return;
		}
		console.log("balances()", balances);
		console.log("BNB balance: ", balances.BNB.available);
	});
}

Don't miss a new node-binance-api release

NewReleases is sending notifications on new releases.