param types for HistoryTradeRecords request
This commit is contained in:
@@ -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<APIResponseWithTime<any>> {
|
||||
return this.getPrivate('/private/linear/trade/execution/history-list', params);
|
||||
}
|
||||
|
||||
@@ -172,6 +172,17 @@ export interface LinearGetTradeRecordsRequest {
|
||||
exec_type?: string;
|
||||
page?: 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 {
|
||||
|
||||
Reference in New Issue
Block a user