Skip to main content
Opening a Hedge is a three-step flow: get a quote to see the cost (optional), submit the open, then poll until it fills. This page walks through all three. For the exact schemas, see POST /hedges in the reference.

1. Get a quote

A quote returns an indicative price and full cost breakdown for a Hedge, without opening anything. Quotes are not binding and not persisted; opening re-prices against the live rate.
The quote breaks down into three parts:
  • pricing - execution_price is what the Hedge would open at (mid rate plus impact).
  • carry - net carry, signed, both daily and over the full tenor.
  • upfront - total_upfront_usdc is margin plus the open-and-close platform fee, all reserved at open.

2. Open the Hedge

Submit the open with the market, side, size, and tenor. It returns immediately with status: "submitted", an order_tx_hash, and a hedge_id; the position is not live yet.
Pass a unique Idempotency-Key header so the open is safe to retry. Retrying with the same key and body returns the original result instead of opening twice. See API Conventions.
The response returns the hedge_id to poll, the collateral_usdc locked at open (margin plus platform fee), the maturity_at date, and a quote echoing the agreed terms.

3. Poll until filled

Poll the Hedge by id until status becomes filled. A filled Hedge gains a fill_tx_hash and its own struck_rate (the rate captured at fill). This usually takes a few seconds.
If a Hedge ends up failed, nothing was opened and any reserved collateral is released. Re-submit with a new Idempotency-Key.

Next

Once filled, the Hedge is a live position. See Monitor Positions to read its P&L and carry, or Add to a Hedge to grow it.