Documentation
    Preparing search index...

    Interface EnqueueReceipt

    OrderEnqueued: the trader's own receipt for a queued mint or sell. Drives "Placed".

    interface EnqueueReceipt {
        accountId: string;
        budget: number;
        builderCodeId: string | null;
        cash: QueueCashFigures;
        kind: number;
        kindName: OrderKindName;
        marketId: string;
        orderFee: number;
        position: queue.HeldPosition | null;
        raw: {
            budget: bigint;
            cashNeed: bigint;
            orderFee: bigint;
            subsidyBound: bigint;
        };
        recordId: bigint;
        referrerAccountId: string
        | null;
        request: {
            higherTick: bigint;
            lowerTick: bigint;
            maxCost: bigint;
            maxPremium: bigint;
            maxProbability: bigint;
            minProbability: bigint;
            minProceeds: bigint;
            minQuantity: bigint;
            quantity: bigint;
        };
        side: "unknown"
        | "mint"
        | "sell";
        sourceRecordId: bigint | null;
        timestampMs: bigint;
        timing: {
            cutoffMs: bigint;
            deadlineMs: bigint;
            earliestPriceMs: bigint;
            placedAtMs: bigint;
            pythChannel: number;
            tauMs: bigint;
        };
        type: "enqueued";
        vol: {
            bs_forward: bigint;
            bs_forward_source_timestamp_ms: bigint;
            bs_spot: bigint;
            bs_spot_source_timestamp_ms: bigint;
            pyth_source_id: number;
            svi_a: { is_negative: boolean; magnitude: bigint };
            svi_b: bigint;
            svi_m: { is_negative: boolean; magnitude: bigint };
            svi_rho: { is_negative: boolean; magnitude: bigint };
            svi_sigma: bigint;
            svi_source_timestamp_ms: bigint;
        };
    }
    Index
    accountId: string
    budget: number

    USDC escrowed for the premium and fees (0 for a sell).

    builderCodeId: string | null
    kind: number
    kindName: OrderKindName
    marketId: string
    orderFee: number
    position: queue.HeldPosition | null

    The position a sell moved into the record. Null for a mint.

    raw: {
        budget: bigint;
        cashNeed: bigint;
        orderFee: bigint;
        subsidyBound: bigint;
    }
    recordId: bigint

    The record ID: what read.order, quoteSell and enqueueSell take. Persist it.

    referrerAccountId: string | null
    request: {
        higherTick: bigint;
        lowerTick: bigint;
        maxCost: bigint;
        maxPremium: bigint;
        maxProbability: bigint;
        minProbability: bigint;
        minProceeds: bigint;
        minQuantity: bigint;
        quantity: bigint;
    }
    side: "unknown" | "mint" | "sell"
    sourceRecordId: bigint | null

    The Open record a sell took its position from. Null for a mint.

    timestampMs: bigint

    onchain_timestamp_ms: the placement transaction's clock.

    timing: {
        cutoffMs: bigint;
        deadlineMs: bigint;
        earliestPriceMs: bigint;
        placedAtMs: bigint;
        pythChannel: number;
        tauMs: bigint;
    }
    type: "enqueued"
    vol: {
        bs_forward: bigint;
        bs_forward_source_timestamp_ms: bigint;
        bs_spot: bigint;
        bs_spot_source_timestamp_ms: bigint;
        pyth_source_id: number;
        svi_a: { is_negative: boolean; magnitude: bigint };
        svi_b: bigint;
        svi_m: { is_negative: boolean; magnitude: bigint };
        svi_rho: { is_negative: boolean; magnitude: bigint };
        svi_sigma: bigint;
        svi_source_timestamp_ms: bigint;
    }

    The volatility snapshot the fill prices with, as the generated layout parses it.

    Type Declaration

    • bs_forward: bigint
    • bs_forward_source_timestamp_ms: bigint
    • bs_spot: bigint

      The matched Block Scholes spot and forward, narrowed to Predict's width.

    • bs_spot_source_timestamp_ms: bigint

      Provider source timestamps of the three reads. The SVI one is also the roll-down anchor.

    • pyth_source_id: number

      Canonical Propbook Pyth source for the market's underlying; commit finds this feed in each Lazer update.

    • svi_a: { is_negative: boolean; magnitude: bigint }

      Raw SVI parameters before roll-down, at 1e9.

    • svi_b: bigint
    • svi_m: { is_negative: boolean; magnitude: bigint }
    • svi_rho: { is_negative: boolean; magnitude: bigint }
    • svi_sigma: bigint
    • svi_source_timestamp_ms: bigint