Interface IDEXPosition

interface IDEXPosition {
    market: string;
    quantity: string;
    maximumQuantity: string;
    entryPrice: string;
    exitPrice: string;
    markPrice: string;
    indexPrice: string;
    liquidationPrice: string;
    value: string;
    realizedPnL: string;
    unrealizedPnL: string;
    marginRequirement: string;
    leverage: string;
    totalFunding: string;
    totalOpen: string;
    totalClose: string;
    adlQuintile: number;
    openedByFillId: string;
    lastFillId: string;
    time: number;
}

Properties

market: string

Market symbol for the item

quantity: string

Base quantity, negative for short positions

maximumQuantity: string

Maximum absolute quantity of the position during its existence

entryPrice: string

Average entry price of the position

exitPrice: string

Average exit price of the position

markPrice: string

Current mark price of the market

indexPrice: string

Current index price of the market

liquidationPrice: string

Index price beyond which the position will be liquidated

value: string

Position value at mark price

realizedPnL: string

Realized PnL of the position in quote terms, including funding payments

unrealizedPnL: string

Unrealized PnL of the position in quote terms at the mark price

marginRequirement: string

Current initial margin requirement of the position

leverage: string

Cross-margined position leverage

totalFunding: string

Net total of all funding payments for the position

totalOpen: string

Total of all trade quantities that increased the position in base terms

totalClose: string

Total of all trade quantities that decreased the position in base terms

adlQuintile: number

Position ADL risk, 0-5 (5 is highest risk)

openedByFillId: string

Id of the fill that opened the position

lastFillId: string

Id of the fill that most recently updated the position

time: number

The timestamp indicating when the item was created.