v3.5.2: feat() add missing v5 internal deposit records endpoint. fix(#233) return type for v5 wallet balance endpoint, fix(#232) timestamp resolution for v5 fetch time endpoint

This commit is contained in:
tiagosiebler
2023-03-03 16:02:44 +00:00
parent 9c5ca07088
commit dff34b6a46
6 changed files with 51 additions and 5 deletions

View File

@@ -81,7 +81,11 @@ export default abstract class BaseRestClient {
private clientType: RestClientType;
/** Function that calls exchange API to query & resolve server time, used by time sync, disabled by default */
/**
* Function that calls exchange API to query & resolve server time, used by time sync, disabled by default.
*
* Note: this should always return server time in seconds
*/
abstract fetchServerTime(): Promise<number>;
/** Defines the client type (affecting how requests & signatures behave) */

View File

@@ -11,7 +11,12 @@ export interface RestClientOptions {
/** Override the max size of the request window (in ms) */
recv_window?: number;
/** Disabled by default. This can help on machines with consistent latency problems. */
/**
* Disabled by default.
* This can help on machines with consistent latency problems.
*
* Note: this feature is not recommended as one slow request can cause problems
*/
enable_time_sync?: boolean;
/** How often to sync time drift with bybit servers */