v3.10.1: fix(#333) v5 time endpoint

This commit is contained in:
tiagosiebler
2024-04-15 10:44:19 +01:00
parent 8810c2024e
commit f14365d8e2
4 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "bybit-api", "name": "bybit-api",
"version": "3.10.0", "version": "3.10.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "bybit-api", "name": "bybit-api",
"version": "3.10.0", "version": "3.10.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"axios": "^1.6.6", "axios": "^1.6.6",

View File

@@ -1,6 +1,6 @@
{ {
"name": "bybit-api", "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.", "description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",

View File

@@ -163,7 +163,7 @@ export class RestClientV5 extends BaseRestClient {
getServerTime(): Promise< getServerTime(): Promise<
APIResponseV3WithTime<{ timeSecond: string; timeNano: string }> APIResponseV3WithTime<{ timeSecond: string; timeNano: string }>
> { > {
return this.get('/v3/public/time'); return this.get('/v5/market/time');
} }
requestDemoTradingFunds(): Promise<{}> { requestDemoTradingFunds(): Promise<{}> {

View File

@@ -33,7 +33,7 @@ export interface RestClientOptions {
sync_interval_ms?: number | string; sync_interval_ms?: number | string;
/** Determines whether to perform time synchronization before sending private requests */ /** 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 */ /** Default: false. If true, we'll throw errors if any params are undefined */
strict_param_validation?: boolean; strict_param_validation?: boolean;