Interface IDEXFill

interface IDEXFill {
    market: string;
    side: OrderSide;
    fillId: string;
    price: string;
    quantity: string;
    quoteQuantity: string;
    realizedPnL: string;
    time: number;
    action: FillAction;
    position: PositionSide;
    type: FillType;
    txId: null | string;
    txStatus: ChainTransactionStatus;
    orderId?: string;
    clientOrderId?: string;
    makerSide?: OrderSide;
    sequence?: number;
    fee?: string;
    indexPrice?: string;
    liquidity?: LiquidityProvider;
    isLiquidationAcquisition?: true;
}

Properties

market: string

Base-quote pair e.g. 'ETH-USD'

side: OrderSide

Orders side, buy or sell

See

enum OrderSide

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

type: FillType

Fill type

See

enum FillType

txId: null | string

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

Status of the trade settlement transaction

orderId?: string

Exchange-assigned order identifier, omitted for liquidations

clientOrderId?: string

Client-provided ID of order, if present

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
isLiquidationAcquisition?: true

When true, the order is a liquidation acquisition only fill.