diff --git a/package.json b/package.json index 75dcdc4..4405c8b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "3.3.2", + "version": "3.3.3", "description": "Complete & robust node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/linear-client.ts b/src/linear-client.ts index 48b1ab5..724601c 100644 --- a/src/linear-client.ts +++ b/src/linear-client.ts @@ -9,6 +9,7 @@ import { LinearConditionalOrderRequest, LinearGetClosedPnlRequest, LinearGetConditionalOrderRequest, + LinearGetHistoryTradeRecordsRequest, LinearGetOrderRequest, LinearGetOrdersRequest, LinearGetTradeRecordsRequest, @@ -341,7 +342,7 @@ export class LinearClient extends BaseRestClient { } getHistoryTradeRecords( - params: LinearGetTradeRecordsRequest + params: LinearGetHistoryTradeRecordsRequest ): Promise> { return this.getPrivate('/private/linear/trade/execution/history-list', params); } diff --git a/src/types/request/linear.ts b/src/types/request/linear.ts index 6901a24..6fb1f4f 100644 --- a/src/types/request/linear.ts +++ b/src/types/request/linear.ts @@ -174,6 +174,16 @@ export interface LinearGetTradeRecordsRequest { limit?: number; } +export interface LinearGetHistoryTradeRecordsRequest { + symbol: string; + start_time?: number; + end_time?: number; + exec_type?: string; + page?: number; + limit?: number; + page_token?: string; +} + export interface LinearGetClosedPnlRequest { symbol: string; start_time?: number;