v3.3.5: fix typo in contract endpoint order request interfaces

This commit is contained in:
tiagosiebler
2022-12-07 17:23:38 +00:00
parent 574ffd41f2
commit 57e24dc035
4 changed files with 8 additions and 7 deletions

4
package-lock.json generated
View File

@@ -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",

View File

@@ -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",

View File

@@ -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;

View File

@@ -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);
},