Interface IDEXOrderFillEventDataBase

Base Type

This is generally not meant to be used directly by SDK users, they are used to augment interfaces with common parameters & documentation.

interface IDEXOrderFillEventDataBase {
    fillId: string;
    price: string;
    quantity: string;
    quoteQuantity: string;
    realizedPnL: string;
    time: number;
    action: FillAction;
    position: PositionSide;
    txId: null | string;
    txStatus: ChainTransactionStatus;
    type: FillType;
    fee?: string;
    indexPrice?: string;
}

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

type: FillType

Inherit Doc

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