Merge pull request #317 from will2022/master

v3.9.3: add `marketUnit` optional property to `OrderParamsV5` interface
This commit is contained in:
Tiago
2024-02-19 13:36:28 +00:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "bybit-api", "name": "bybit-api",
"version": "3.9.2", "version": "3.9.3",
"description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.", "description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",

View File

@@ -17,6 +17,7 @@ export interface OrderParamsV5 {
side: OrderSideV5; side: OrderSideV5;
orderType: OrderTypeV5; orderType: OrderTypeV5;
qty: string; qty: string;
marketUnit?: 'baseCoin' | 'quoteCoin';
price?: string; price?: string;
triggerDirection?: 1 | 2; triggerDirection?: 1 | 2;
orderFilter?: OrderFilterV5; orderFilter?: OrderFilterV5;