Merge pull request #335 from tiagosiebler/timev5

v3.10.1: fix(#333) v5 time endpoint
This commit is contained in:
Tiago
2024-04-15 10:56:33 +01:00
committed by GitHub
4 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View File

@@ -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",

View File

@@ -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",

View File

@@ -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<{}> {

View File

@@ -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;