derive-options
Derive options
Produce an option-specific Derive v3 decision with premium, Greeks, margin and expiry evidence. Do not combine v2 authentication or instrument formats with the current v3 API.
Identify the contract and portfolio
Collect exact instrument_name, side, quantity, public/subaccount identity, collateral and objective. Resolve the market's risk universe, option strike/type, exact expiry timestamp and settlement asset. Names encode an eight-digit expiry date, but the actual expiry time can vary by market; read option_details.expiry rather than applying a universal UTC hour.
Use the current public ticker and dry-run APIs in reads, or existing properly scoped account reads. Record mark/index, bid/ask sizes, Greeks, fee quote and observation time. A mark is a valuation input, not executable depth. Keep decimal strings until calculation boundaries.
Model premium and margin
Separate premium paid/received, fees and notional. A fully paid long option's premium exposure differs from a short option's collateral and potentially large loss. Evaluate spot/volatility/time scenarios with the venue's matched margin manager and risk universe. The public margin simulation returns net margin; positive is headroom. It excludes open-order margin, so include pending-order obligations from account evidence before claiming account readiness.
A dry-run public/order_quote is an estimate, not a trade. For a requested unsigned order, show subaccount, exact instrument, amount, direction, limit, max fee, reduce-only/time-in-force and expiry. Session creation or Trade/Admin scope changes are distinct authority actions; never create keys for research.
Reconcile lifecycle
Retain order ID, nonce and subaccount; read current order, trades, positions and settlement history. Partial fills change Greeks and margin while unfilled quantity can remain live. Cancellation can race a fill. At expiry distinguish stale displayed positions from actual settlement and balance changes.