Interface IDEXOrderFillEventDataGeneral

Non-liquidation Order Fill Type

See

type FillTypeOrder

interface IDEXOrderFillEventDataGeneral {
    fillId: string;
    price: string;
    quantity: string;
    quoteQuantity: string;
    realizedPnL: string;
    time: number;
    action: FillAction;
    position: PositionSide;
    txId: null | string;
    txStatus: ChainTransactionStatus;
    type: FillTypeOrder;
    makerSide?: OrderSide;
    sequence?: number;
    fee?: string;
    indexPrice?: string;
    liquidity?: LiquidityProvider;
}

Hierarchy (view full)

Properties

fillId: string

Internal ID of fill

price: string

Executed price of fill in quote terms

quantity: string

Executed quantity of fill in base terms

quoteQuantity: string

Executed quantity of trade in quote terms

realizedPnL: string

Realized PnL

  • PnL only from the fill’s closure, not for the position overall
  • Does not include fees.
time: number

Fill timestamp

action: FillAction

Whether the fill increases or decreases the notional value of the position, open or close

See

enum FillAction

position: PositionSide

Resulting position side

See

enum PositionSide

txId: null | string

Transaction id of the trade settlement transaction or null if not yet assigned

Status of the trade settlement transaction

Inherit Doc

makerSide?: OrderSide

Maker side of the fill, buy or sell

  • omitted for liquidation actions

See

enum OrderSide

sequence?: number

Fill sequence number

  • omitted for liquidation actions
fee?: string

Fee amount collected on the fill in quote terms

  • may be negative due to promotions
  • omitted for some liquidation actions
indexPrice?: string

Index price of the market at transaction time, for internal use

liquidity?: LiquidityProvider

Whether the fill is the maker or taker in the trade from the perspective of the requesting API account, maker or taker

  • omitted for liquidation actions