MCPcopy Create free account
hub / github.com/ccxt/node-binance-api / reqObj

Function reqObj

deprecated/node-binance-api.js:208–221  ·  view source on GitHub ↗
(url, data = {}, method = 'GET', key)

Source from the content-addressed store, hash-verified

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,

Callers 4

publicRequestFunction · 0.85
apiRequestFunction · 0.85
marketRequestFunction · 0.85
signedRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected