| 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(); |
no outgoing calls
no test coverage detected