Documentation
    Preparing search index...
    • What an order pays at settlement, raw USDC: its full quantity when the settlement price lies in (lower, higher], else 0. The mirror of strike_exposure::settled_order_payout, which rounds the settlement price up to the market's tick grid (range_codec::limit_tick) before comparing it with the order's ticks, so a price inside a tick counts as that tick's upper edge. Pass read.settlement's settlementPriceRaw and tickSizeRaw, and the config's units.positionLotSize when it isn't the default.

      Parameters

      • orderId: bigint
      • settlementPriceRaw: bigint
      • tickSizeRaw: bigint
      • lotSize: bigint = POSITION_LOT_SIZE

      Returns bigint