fix test and jsdoc
This commit is contained in:
@@ -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
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
Reference in New Issue
Block a user