fix test and jsdoc

This commit is contained in:
tiagosiebler
2022-09-20 00:01:59 +01:00
parent 0ad221fe5a
commit 22c0de50b0
4 changed files with 4 additions and 10 deletions

View File

@@ -61,10 +61,7 @@ export default abstract class BaseRestClient {
abstract getClientType(): RestClientType; abstract getClientType(): RestClientType;
/** /**
* Create an instance of the REST client * Create an instance of the REST client. Pass API credentials in the object in the first parameter.
* @param {string} key - your API key
* @param {string} secret - your API secret
* @param {boolean} [useLivenet=false]
* @param {RestClientOptions} [restClientOptions={}] options to configure REST API connectivity * @param {RestClientOptions} [restClientOptions={}] options to configure REST API connectivity
* @param {AxiosRequestConfig} [networkOptions={}] HTTP networking options for axios * @param {AxiosRequestConfig} [networkOptions={}] HTTP networking options for axios
*/ */

View File

@@ -6,8 +6,7 @@ import {
} from '../response.util'; } from '../response.util';
describe('Public Linear REST API Endpoints', () => { describe('Public Linear REST API Endpoints', () => {
const useLivenet = true; const api = new LinearClient();
const api = new LinearClient(undefined, undefined, useLivenet);
const symbol = 'BTCUSDT'; const symbol = 'BTCUSDT';
const interval = '15'; const interval = '15';

View File

@@ -6,8 +6,7 @@ import {
} from '../response.util'; } from '../response.util';
describe('Public Spot REST API Endpoints', () => { describe('Public Spot REST API Endpoints', () => {
const useLivenet = true; const api = new SpotClient();
const api = new SpotClient(undefined, undefined, useLivenet);
const symbol = 'BTCUSDT'; const symbol = 'BTCUSDT';
const interval = '15m'; const interval = '15m';

View File

@@ -5,8 +5,7 @@ import {
} from '../response.util'; } from '../response.util';
describe('Public Spot REST API Endpoints', () => { describe('Public Spot REST API Endpoints', () => {
const useLivenet = true; const api = new SpotClientV3();
const api = new SpotClientV3(undefined, undefined, useLivenet);
const symbol = 'BTCUSDT'; const symbol = 'BTCUSDT';
const interval = '15m'; const interval = '15m';