0.10.44 • Published 3 years ago

binance-api-node-with-proxy v0.10.44

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

binance-api-node build cover bnb

A complete API wrapper for the Binance API. it's just a fork from https://github.com/binance-exchange/binance-api-node with agent option to use proxy;

const HttpsProxyAgent = require('https-proxy-agent');
const proxy = process.env.http_proxy
const agent = new HttpsProxyAgent(proxy);

function getAgentFunc() {
  return agent;
}

const client = Binance({
  // agent: agent
  getAgent: getAgentFunc()
})