(opt = {})
| 237 | } |
| 238 | |
| 239 | async setOptions(opt = {}): Promise<Binance> { |
| 240 | |
| 241 | this.assignOptions(opt); |
| 242 | if (this.Options.useServerTime) { |
| 243 | const res = await this.publicSpotRequest('v3/time'); |
| 244 | this.timeOffset = res.serverTime - new Date().getTime(); |
| 245 | } |
| 246 | return this; |
| 247 | } |
| 248 | |
| 249 | // ---- HELPER FUNCTIONS ---- // |
| 250 |
no test coverage detected