Merge pull request #335 from tiagosiebler/timev5
v3.10.1: fix(#333) v5 time endpoint
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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<{}> {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user