Merge pull request #133 from pranaypratyush/master

Update ReplaceActiveOrder for InverseClient
This commit is contained in:
Tiago
2022-01-14 09:48:52 +00:00
committed by GitHub
2 changed files with 6 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "bybit-api", "name": "bybit-api",
"version": "2.1.7", "version": "2.1.8",
"description": "Node.js connector for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.", "description": "Node.js connector 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

@@ -129,8 +129,12 @@ export class InverseClient extends SharedEndpoints {
order_id?: string; order_id?: string;
order_link_id?: string; order_link_id?: string;
symbol: string; symbol: string;
p_r_qty?: string; p_r_qty?: number;
p_r_price?: string; p_r_price?: string;
take_profit?: number;
stop_loss?: number;
tp_trigger_by?:string;
sl_trigger_by?:string;
}): GenericAPIResponse { }): GenericAPIResponse {
return this.requestWrapper.post('v2/private/order/replace', params); return this.requestWrapper.post('v2/private/order/replace', params);
} }