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

Method useServerTime

src/node-binance-api.ts:4193–4197  ·  view source on GitHub ↗

* Tell api to use the server time to offset time indexes * @see https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#check-server-time * @return {promise or undefined} - omitting the callback returns a promise

()

Source from the content-addressed store, hash-verified

4191 * @return {promise or undefined} - omitting the callback returns a promise
4192 */
4193 async useServerTime() {
4194 const response = await this.publicSpotRequest('v3/time', {});
4195 this.timeOffset = response.serverTime - new Date().getTime();
4196 return response;
4197 }
4198
4199 // /**
4200 // * Get Binance server time

Callers 3

live-tests.cjsFile · 0.80

Calls 1

publicSpotRequestMethod · 0.95

Tested by

no test coverage detected