Merge pull request #205 from JustMankus/codespace-justmankus-super-space-broccoli-pjp6j6p4v4v299r6

new param Type for getHistoryTradeRecordsRequest.
This commit is contained in:
Tiago
2022-11-17 16:30:34 +00:00
committed by GitHub
3 changed files with 13 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "bybit-api", "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.", "description": "Complete & robust node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.",
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",

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

@@ -174,6 +174,16 @@ export interface LinearGetTradeRecordsRequest {
limit?: number; 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 { export interface LinearGetClosedPnlRequest {
symbol: string; symbol: string;
start_time?: number; start_time?: number;