param types for HistoryTradeRecords request

This commit is contained in:
Justinas Mankus
2022-11-17 18:25:22 +02:00
parent 6f26c72413
commit 1d80ed6cbf
2 changed files with 13 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ import {
LinearConditionalOrderRequest, LinearConditionalOrderRequest,
LinearGetClosedPnlRequest, LinearGetClosedPnlRequest,
LinearGetConditionalOrderRequest, LinearGetConditionalOrderRequest,
LinearGetHistoryTradeRecordsRequest,
LinearGetOrderRequest, LinearGetOrderRequest,
LinearGetOrdersRequest, LinearGetOrdersRequest,
LinearGetTradeRecordsRequest, LinearGetTradeRecordsRequest,
@@ -341,7 +342,7 @@ export class LinearClient extends BaseRestClient {
} }
getHistoryTradeRecords( getHistoryTradeRecords(
params: LinearGetTradeRecordsRequest params: LinearGetHistoryTradeRecordsRequest
): Promise<APIResponseWithTime<any>> { ): Promise<APIResponseWithTime<any>> {
return this.getPrivate('/private/linear/trade/execution/history-list', params); return this.getPrivate('/private/linear/trade/execution/history-list', params);
} }

View File

@@ -172,6 +172,17 @@ export interface LinearGetTradeRecordsRequest {
exec_type?: string; exec_type?: string;
page?: number; page?: number;
limit?: number; limit?: number;
page_token?: string;
}
export interface LinearGetHistoryTradeRecordsRequest {
symbol: string;
start_time?: number;
end_time?: number;
exec_type?: string;
page?: number;
limit?: number;
page_token?: string;
} }
export interface LinearGetClosedPnlRequest { export interface LinearGetClosedPnlRequest {