diff --git a/examples/ws-private.ts b/examples/ws-private.ts index 2b4908a..62839e4 100644 --- a/examples/ws-private.ts +++ b/examples/ws-private.ts @@ -1,3 +1,6 @@ +/* eslint-disable no-unused-vars */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-function */ import { DefaultLogger, WS_KEY_MAP, WebsocketClient } from '../src'; // or diff --git a/src/linear-client.ts b/src/linear-client.ts index b262ebe..4ab0086 100644 --- a/src/linear-client.ts +++ b/src/linear-client.ts @@ -38,7 +38,6 @@ import { WalletFundRecordsReq, WithdrawRecordsReq, } from './types'; -import { linearPositionModeEnum, positionTpSlModeEnum } from './constants/enum'; import BaseRestClient from './util/BaseRestClient'; /** diff --git a/src/spot-client-v3.ts b/src/spot-client-v3.ts index 090c3dd..029b92d 100644 --- a/src/spot-client-v3.ts +++ b/src/spot-client-v3.ts @@ -166,6 +166,7 @@ export class SpotClientV3 extends BaseRestClient { symbol, orderId, limit, + orderCategory, }); } diff --git a/src/util/logger.ts b/src/util/logger.ts index 47f189b..68a290e 100644 --- a/src/util/logger.ts +++ b/src/util/logger.ts @@ -1,3 +1,5 @@ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable no-unused-vars */ // eslint-disable-next-line @typescript-eslint/no-explicit-any export type LogParams = null | any; diff --git a/test/usdc/options/private.write.test.ts b/test/usdc/options/private.write.test.ts index ae8ab53..511e670 100644 --- a/test/usdc/options/private.write.test.ts +++ b/test/usdc/options/private.write.test.ts @@ -1,5 +1,5 @@ import { API_ERROR_CODE, USDCOptionClient } from '../../../src'; -import { successResponseObjectV3 } from '../../response.util'; +// import { successResponseObjectV3 } from '../../response.util'; describe('Private USDC Options REST API POST Endpoints', () => { const API_KEY = process.env.API_KEY_COM; diff --git a/test/usdc/perpetual/private.write.test.ts b/test/usdc/perpetual/private.write.test.ts index df7c16e..d4f0646 100644 --- a/test/usdc/perpetual/private.write.test.ts +++ b/test/usdc/perpetual/private.write.test.ts @@ -1,8 +1,5 @@ import { API_ERROR_CODE, USDCPerpetualClient } from '../../../src'; -import { - successEmptyResponseObjectV3, - successResponseObjectV3, -} from '../../response.util'; +import { successEmptyResponseObjectV3 } from '../../response.util'; describe('Private USDC Perp REST API POST Endpoints', () => { const API_KEY = process.env.API_KEY_COM; diff --git a/test/ws.util.ts b/test/ws.util.ts index 695bedb..6d134bb 100644 --- a/test/ws.util.ts +++ b/test/ws.util.ts @@ -1,8 +1,9 @@ +/* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable no-unused-vars */ /* eslint-disable @typescript-eslint/no-empty-function */ import { WebsocketClient, WsClientEvent } from '../src'; -export function getSilentLogger(logHint?: string) { +export function getSilentLogger(_logHint?: string) { return { silly: () => {}, debug: () => {}, @@ -129,7 +130,7 @@ export function logAllEvents(wsClient: WebsocketClient) { } export function promiseSleep(ms: number) { - return new Promise((resolve, reject) => { + return new Promise((resolve) => { setTimeout(resolve, ms); }); }