MCPcopy Index your code
hub / github.com/ccxt/node-binance-api / addProxy

Function addProxy

deprecated/node-binance-api.js:176–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174 }
175
176 const addProxy = opt => {
177 if (Binance.options.proxy) {
178 const proxyauth = Binance.options.proxy.auth ? `${Binance.options.proxy.auth.username}:${Binance.options.proxy.auth.password}@` : '';
179 opt.proxy = `http://${proxyauth}${Binance.options.proxy.host}:${Binance.options.proxy.port}`;
180 }
181 return opt;
182 }
183
184 const reqHandler = cb => (error, response, body) => {
185 Binance.info.lastRequest = new Date().getTime();

Callers 3

proxyRequestFunction · 0.85
promiseRequestFunction · 0.85
apiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected