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",
|
"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",
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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<{}> {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user