Documentation
    Preparing search index...

    Interface EnqueueSellOptions

    Options for enqueueSell: a queued early sell of an Open record.

    interface EnqueueSellOptions {
        fundMarket?: "auto" | "always" | "never";
        minProbability: number;
        minProceeds: number;
        quantity: number;
        recordId: bigint;
    }
    Index
    fundMarket?: "auto" | "always" | "never"

    Add rebalance_expiry_cash after the enqueue so the market is funded for this sell at once. 'auto' (default) adds it only when the sell's cash need is above spare cash, 'always' always, 'never' never. It takes the hot PoolVault, so keep it conditional.

    minProbability: number

    Close-side probability floor at τ, in [0, 1]. Pass 0 on purpose to disable it.

    minProceeds: number

    Floor on the proceeds before the order fee, in USDC. Pass 0 on purpose to disable it.

    quantity: number

    Payout quantity to close. A partial sell must leave at least the policy minimum.

    recordId: bigint

    The Open record to sell from: its queue record ID, not the position's order ID.