binance-api-node-with-proxy
v0.10.44
Published
A node API wrapper for Binance(with proxy option)
Downloads
7
Readme
binance-api-node
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()
})