diff --git a/package-lock.json b/package-lock.json index b03e00c..941c4f5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bybit-api", - "version": "3.10.0", + "version": "3.10.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bybit-api", - "version": "3.10.0", + "version": "3.10.1", "license": "MIT", "dependencies": { "axios": "^1.6.6", diff --git a/package.json b/package.json index c631442..719472f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "3.10.0", + "version": "3.10.1", "description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/rest-client-v5.ts b/src/rest-client-v5.ts index 0a94c83..0fdc302 100644 --- a/src/rest-client-v5.ts +++ b/src/rest-client-v5.ts @@ -163,7 +163,7 @@ export class RestClientV5 extends BaseRestClient { getServerTime(): Promise< APIResponseV3WithTime<{ timeSecond: string; timeNano: string }> > { - return this.get('/v3/public/time'); + return this.get('/v5/market/time'); } requestDemoTradingFunds(): Promise<{}> { diff --git a/src/util/requestUtils.ts b/src/util/requestUtils.ts index 1a5be38..541da61 100644 --- a/src/util/requestUtils.ts +++ b/src/util/requestUtils.ts @@ -33,7 +33,7 @@ export interface RestClientOptions { sync_interval_ms?: number | string; /** Determines whether to perform time synchronization before sending private requests */ - syncTimeBeforePrivateRequests?: false; + syncTimeBeforePrivateRequests?: boolean; /** Default: false. If true, we'll throw errors if any params are undefined */ strict_param_validation?: boolean;