remove silly logger from ws by default. Expand spot and linear types

This commit is contained in:
tiagosiebler
2022-08-18 17:04:53 +01:00
parent ae56067c94
commit 2d0366a708
15 changed files with 174 additions and 31 deletions

View File

@@ -0,0 +1 @@
export * from './usdt-perp';

View File

@@ -0,0 +1,27 @@
import { LinearPositionIdx } from '../../constants/enum';
import { OrderSide } from '../shared';
export type LinearOrderType = 'Limit' | 'Market';
export type LinearTimeInForce =
| 'GoodTillCancel'
| 'ImmediateOrCancel'
| 'FillOrKill'
| 'PostOnly';
export interface NewLinearOrder {
side: OrderSide;
symbol: string;
order_type: LinearOrderType;
qty: number;
price?: number;
time_in_force: LinearTimeInForce;
take_profit?: number;
stop_loss?: number;
tp_trigger_by?: string;
sl_trigger_by?: string;
reduce_only: boolean;
close_on_trigger: boolean;
order_link_id?: string;
position_idx?: LinearPositionIdx;
}