diff --git a/package-lock.json b/package-lock.json index d1b8e6c..0b48749 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bybit-api", - "version": "3.3.2", + "version": "3.3.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bybit-api", - "version": "3.3.2", + "version": "3.3.5", "license": "MIT", "dependencies": { "axios": "^0.21.0", diff --git a/package.json b/package.json index b3c687a..094c9be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "3.3.4", + "version": "3.3.5", "description": "Complete & robust node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/types/request/contract.ts b/src/types/request/contract.ts index 125df40..58ae67d 100644 --- a/src/types/request/contract.ts +++ b/src/types/request/contract.ts @@ -16,8 +16,8 @@ export interface ContractOrderRequest { slTriggerBy?: string; timeInForce: USDCTimeInForce; orderLinkId?: string; - takeProfit?: number; - stopLoss?: number; + takeProfit?: string; + stopLoss?: string; reduceOnly?: boolean; closeOnTrigger?: boolean; } @@ -44,8 +44,8 @@ export interface ContractModifyOrderRequest { symbol: string; qty?: string; price?: string; - takeProfit?: number; - stopLoss?: number; + takeProfit?: string; + stopLoss?: string; tpTriggerBy?: string; slTriggerBy?: string; triggerBy?: string; diff --git a/src/util/logger.ts b/src/util/logger.ts index a0b2379..07bb89c 100644 --- a/src/util/logger.ts +++ b/src/util/logger.ts @@ -1,6 +1,7 @@ export type LogParams = null | any; export const DefaultLogger = { + /** Ping/pong events and other raw messages that might be noisy */ silly: (...params: LogParams): void => { // console.log(params); },