Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

PositionExtended

A position plus computed unrealized PnL / funding / liquidation price.

Definition

class PositionExtended(TypedDict):
    size: Quantity
    entry_price: UsdPrice
    entry_funding_per_unit: FundingPerUnit
    conditional_order_above: ConditionalOrder | None
    conditional_order_below: ConditionalOrder | None
    unrealized_pnl: UsdValue | None
    unrealized_funding: UsdValue | None
    liquidation_price: UsdPrice | None

Fields

Inherits Position plus:

unrealized_pnlUsdValue | None. Mark-vs-entry PnL. None when not requested.

unrealized_fundingUsdValue | None. Funding accrued since entry.

liquidation_priceUsdPrice | None. Price at which the position would be liquidated; only present when include_liquidation_price=True.

See also