* 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
()
| 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 |
no test coverage detected