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

1. Request a quote

A quote returns an indicative price and full cost breakdown for a trade, without opening a position. Quotes are not binding and not persisted; trade submission reprices against the live rate.
The quote breaks down into three parts:
  • pricing - execution_price is the indicative opening rate, including price 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. Submit a trade

Submit the trade 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. For API-key submissions, a missing, empty or whitespace-only client_reference returns 400 validation_error. It is optional for signed-in desk submissions.
Pass a unique Idempotency-Key header so the submission 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 containing the terms used at submission.

3. Confirm the fill

Poll the trade by its hedge_id until status becomes filled. The filled trade record includes a fill_tx_hash and its own struck_rate (the rate captured at fill). This usually takes a few seconds.
If a trade ends up failed, no position was opened and any reserved collateral is released. Re-submit with a new Idempotency-Key.

Next

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