Documentation
    Preparing search index...

    read.planSell: what an early sell shows, and the enqueue options that carry its slippage.

    interface SellPlan {
        accepting: boolean;
        minNet: number;
        minProceeds: number;
        net: number;
        order: { builder: "enqueueSell"; options: EnqueueSellOptions };
        orderFee: number;
        proceeds: number;
        quote: SellQuote;
        raw: {
            minProbability: bigint;
            minProceeds: bigint;
            orderFee: bigint;
            slippage: bigint;
        };
        refusal: PredictPreflightCode
        | null;
        slippage: AppliedSlippage;
        target: PlanTarget;
        timing: TimingPreview;
    }
    Index
    accepting: boolean

    Whether tx.enqueuePlan would build the sell now: the builder's preflight, which checks the queue gates, that the record is Open and the owner's, the order fee and the minimum sell. The market's SVI age under the order desk's svi_max_age_ms is checked only on chain, at placement.

    minNet: number

    minProceeds − orderFee: the worst the sell nets if it fills. Negative when the order fee is above the proceeds floor.

    minProceeds: number

    The proceeds floor the order carries, before the order fee. A smaller fill is refunded.

    net: number

    proceeds − orderFee.

    order: { builder: "enqueueSell"; options: EnqueueSellOptions }

    Pass order.options to tx.enqueueSell.

    orderFee: number
    proceeds: number

    Proceeds at the current price, before the order fee.

    quote: SellQuote

    The quote at the current price.

    raw: {
        minProbability: bigint;
        minProceeds: bigint;
        orderFee: bigint;
        slippage: bigint;
    }
    refusal: PredictPreflightCode | null

    The PredictPreflightError code the sell would get now, or null.

    slippage: AppliedSlippage
    target: PlanTarget

    The owner, market and record the plan was quoted for.