| 520 | } |
| 521 | |
| 522 | reqObjPOST(url: string, data: Dict = {}, method = 'POST', key: string) { |
| 523 | return { |
| 524 | url: url, |
| 525 | form: data, |
| 526 | method: method, |
| 527 | family: this.Options.family, |
| 528 | localAddress: this.Options.localAddress, |
| 529 | timeout: this.Options.recvWindow, |
| 530 | forever: this.Options.keepAlive, |
| 531 | qsStringifyOptions: { |
| 532 | arrayFormat: 'repeat' |
| 533 | }, |
| 534 | headers: { |
| 535 | 'User-Agent': this.userAgent, |
| 536 | 'Content-type': this.contentType, |
| 537 | 'X-MBX-APIKEY': key || '' |
| 538 | } |
| 539 | }; |
| 540 | } |
| 541 | |
| 542 | async publicRequest(url: string, data: Dict = {}, method: HttpMethod = 'GET') { |
| 543 | const query = this.makeQueryString(data); |