Interface ICreateOCOOrderParams

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,
}
interface ICreateOCOOrderParams {
    base_amount: number;
    oco_target_price: number;
    price: number;
    side: OrderSide;
    stop_price: number;
    symbol: `${string}_IRT` | `${string}_USDT`;
    type: "oco";
}

Hierarchy (view full)

Properties

base_amount: number

The base amount for the order.

oco_target_price: number

The target price for the OCO order.

price: number

The price value.

side: OrderSide

The side of the order (buy/sell).

stop_price: number

The stop price value.

symbol: `${string}_IRT` | `${string}_USDT`

The symbol for the order.

type

The type of the order (OCO).