ICreateOCOOrderParams Interface representing the parameters for creating an OCO (One Cancels the Other) order.
const createOCOOrderParams: ICreateOCOOrderParams = { symbol: 'BTC_USDT', type: OrderType.OCO, side: OrderSide.BUY, base_amount: 1, price: 50000, stop_price: 49000, oco_target_price: 51000,} Copy
const createOCOOrderParams: ICreateOCOOrderParams = { symbol: 'BTC_USDT', type: OrderType.OCO, side: OrderSide.BUY, base_amount: 1, price: 50000, stop_price: 49000, oco_target_price: 51000,}
The base amount for the order.
The target price for the OCO order.
The price value.
The side of the order (buy/sell).
The stop price value.
The symbol for the order.
The type of the order (OCO).
ICreateOCOOrderParams Interface representing the parameters for creating an OCO (One Cancels the Other) order.
Example