Interface IDEXOrder

The standard order object.

interface IDEXOrder {
    market: string;
    orderId: string;
    wallet: string;
    time: number;
    status: OrderStatus;
    type: OrderType;
    side: OrderSide;
    originalQuantity: string;
    executedQuantity: string;
    cumulativeQuoteQuantity: string;
    reduceOnly: boolean;
    selfTradePrevention: SelfTradePrevention;
    clientOrderId?: string;
    errorCode?: string;
    errorMessage?: string;
    avgExecutionPrice?: string;
    price?: string;
    triggerPrice?: string;
    triggerType?: "index" | "last";
    timeInForce?: TimeInForce;
    fills?: IDEXOrderFill[];
}

Properties

market: string

Market symbol as base-quote pair e.g. 'ETH-USD'

orderId: string

Exchange-assigned order identifier

wallet: string

Address of the wallet which placed the order

time: number

Timestamp of initial order processing by the matching engine

status: OrderStatus

Current order status

See

enum OrderStatus

type: OrderType

OrderType

See

enum OrderType

side: OrderSide

Order side, buy or sell

See

enum OrderSide

originalQuantity: string

Original quantity specified by the order in base terms

executedQuantity: string

Quantity that has been executed in base terms

cumulativeQuoteQuantity: string

Cumulative quantity that has been spent (buy orders) or received (sell orders) in quote terms.

reduceOnly: boolean

Reduce only orders are only accepted opposite open positions and only reduce an opposite position’s size

selfTradePrevention: SelfTradePrevention

Self-trade prevention policy

clientOrderId?: string

Client-specified order identifier (if provided)

errorCode?: string

Error short code explaining forced cancelation condition

errorMessage?: string

Error description explaining forced cancelation condition

avgExecutionPrice?: string

Weighted average price of fills associated with the order; only present with fills

price?: string

Original price specified by the order in quote terms, omitted for all market orders

triggerPrice?: string
  • Only allowed for certain order types mentioned below, omitted otherwise.

Stop loss or take profit price for order types:

Activation price for order types:

triggerType?: "index" | "last"

Price type for triggerPrice, last or index, only present when triggerPrice is defined

See

enum TriggerType

timeInForce?: TimeInForce

See

enum TimeInForce

fills?: IDEXOrderFill[]

Array of order fill objects