diff --git a/src/util/BaseRestClient.ts b/src/util/BaseRestClient.ts index dc87f1a..8e47583 100644 --- a/src/util/BaseRestClient.ts +++ b/src/util/BaseRestClient.ts @@ -61,10 +61,7 @@ export default abstract class BaseRestClient { abstract getClientType(): RestClientType; /** - * Create an instance of the REST client - * @param {string} key - your API key - * @param {string} secret - your API secret - * @param {boolean} [useLivenet=false] + * Create an instance of the REST client. Pass API credentials in the object in the first parameter. * @param {RestClientOptions} [restClientOptions={}] options to configure REST API connectivity * @param {AxiosRequestConfig} [networkOptions={}] HTTP networking options for axios */ diff --git a/test/linear/public.test.ts b/test/linear/public.test.ts index 169f93f..73f495d 100644 --- a/test/linear/public.test.ts +++ b/test/linear/public.test.ts @@ -6,8 +6,7 @@ import { } from '../response.util'; describe('Public Linear REST API Endpoints', () => { - const useLivenet = true; - const api = new LinearClient(undefined, undefined, useLivenet); + const api = new LinearClient(); const symbol = 'BTCUSDT'; const interval = '15'; diff --git a/test/spot/public.v1.test.ts b/test/spot/public.v1.test.ts index f0d261c..e89afbc 100644 --- a/test/spot/public.v1.test.ts +++ b/test/spot/public.v1.test.ts @@ -6,8 +6,7 @@ import { } from '../response.util'; describe('Public Spot REST API Endpoints', () => { - const useLivenet = true; - const api = new SpotClient(undefined, undefined, useLivenet); + const api = new SpotClient(); const symbol = 'BTCUSDT'; const interval = '15m'; diff --git a/test/spot/public.v3.test.ts b/test/spot/public.v3.test.ts index e18f260..58d92cb 100644 --- a/test/spot/public.v3.test.ts +++ b/test/spot/public.v3.test.ts @@ -5,8 +5,7 @@ import { } from '../response.util'; describe('Public Spot REST API Endpoints', () => { - const useLivenet = true; - const api = new SpotClientV3(undefined, undefined, useLivenet); + const api = new SpotClientV3(); const symbol = 'BTCUSDT'; const interval = '15m';