• A draw sized to a margin the caller chooses (core drawForMargin, MK-240): the largest open that survives priceFallBps of price fall and horizonSeconds of interest, with the ceiling beside it and the margin it was solved with.

    Both inputs are required and neither has a default. How long a position will be held and how far the price may fall are the user's decisions; the library cannot make them. The hook stays disabled, data: undefined, until both are supplied. The price history that helps choose them is in docs/03-core-api.md and on core drawForMargin.

    data.draw answers the margin in data.margin and nothing else: a larger fall, a longer hold, or debt redistributed from another Trove's liquidation can still take the position to liquidation. Render the margin beside the figure, never the figure alone.

    Parameters

    Returns UseQueryResult<MarginDraw, Error>