(url, data = {}, method = 'GET', key)
| 206 | } |
| 207 | |
| 208 | const reqObj = (url, data = {}, method = 'GET', key) => ({ |
| 209 | url: url, |
| 210 | qs: data, |
| 211 | method: method, |
| 212 | family: Binance.options.family, |
| 213 | localAddress: Binance.options.localAddress, |
| 214 | timeout: Binance.options.recvWindow, |
| 215 | forever: Binance.options.keepAlive, |
| 216 | headers: { |
| 217 | 'User-Agent': userAgent, |
| 218 | 'Content-type': contentType, |
| 219 | 'X-MBX-APIKEY': key || '' |
| 220 | } |
| 221 | }) |
| 222 | const reqObjPOST = (url, data = {}, method = 'POST', key) => ({ |
| 223 | url: url, |
| 224 | form: data, |
no outgoing calls
no test coverage detected