param types for HistoryTradeRecords request
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user