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

Method reqObj

src/node-binance-api.ts:505–520  ·  view source on GitHub ↗
(url: string, data: Dict = {}, method: HttpMethod = 'GET', key?: string)

Source from the content-addressed store, hash-verified

503 }
504
505 reqObj(url: string, data: Dict = {}, method: HttpMethod = 'GET', key?: string) {
506 return {
507 url: url,
508 qs: data,
509 method: method,
510 family: this.Options.family,
511 localAddress: this.Options.localAddress,
512 timeout: this.Options.recvWindow,
513 forever: this.Options.keepAlive,
514 headers: {
515 'User-Agent': this.userAgent,
516 'Content-type': this.contentType,
517 'X-MBX-APIKEY': key || ''
518 }
519 };
520 }
521
522 reqObjPOST(url: string, data: Dict = {}, method = 'POST', key: string) {
523 return {

Callers 3

publicRequestMethod · 0.95
apiRequestMethod · 0.95
signedRequestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected