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

Method setOptions

src/node-binance-api.ts:239–247  ·  view source on GitHub ↗
(opt = {})

Source from the content-addressed store, hash-verified

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

Callers 2

constructorMethod · 0.95
optionsMethod · 0.95

Calls 2

assignOptionsMethod · 0.95
publicSpotRequestMethod · 0.95

Tested by

no test coverage detected