v2.3.0: fix(#158), disable time sync by default. Optionally avoid hitting time API when connecting authenticated websocket.

This commit is contained in:
tiagosiebler
2022-07-12 11:32:17 +01:00
parent 7c531161b5
commit 43c1f91b50
18 changed files with 50 additions and 60 deletions

View File

@@ -11,9 +11,7 @@ describe('Public Linear REST API GET Endpoints', () => {
expect(API_SECRET).toStrictEqual(expect.any(String));
});
const api = new LinearClient(API_KEY, API_SECRET, useLivenet, {
disable_time_sync: true,
});
const api = new LinearClient(API_KEY, API_SECRET, useLivenet);
const symbol = 'BTCUSDT';

View File

@@ -11,9 +11,7 @@ describe('Private Inverse-Futures REST API POST Endpoints', () => {
expect(API_SECRET).toStrictEqual(expect.any(String));
});
const api = new LinearClient(API_KEY, API_SECRET, useLivenet, {
disable_time_sync: true,
});
const api = new LinearClient(API_KEY, API_SECRET, useLivenet);
// Warning: if some of these start to fail with 10001 params error, it's probably that this future expired and a newer one exists with a different symbol!
const symbol = 'BTCUSDT';

View File

@@ -7,9 +7,7 @@ import {
describe('Public Linear REST API Endpoints', () => {
const useLivenet = true;
const api = new LinearClient(undefined, undefined, useLivenet, {
disable_time_sync: true,
});
const api = new LinearClient(undefined, undefined, useLivenet);
const symbol = 'BTCUSDT';
const interval = '15';