/hedges routes and hedge_id identifiers for trades and positions.
Base URL
Authentication
Every request authenticates with your API key as a Bearer token. The key prefix selects the environment -mk_live_ for production, mk_test_ for sandbox. See Authentication for details.
Response envelope
Every endpoint returns the same envelope:data is populated and error is null. On failure data is null and error carries a machine-readable code, a message, and optional details. Amounts are in USDC unless noted. See API conventions for the full code list.
Idempotency
Opening, increasing, reducing and closing positions accept anIdempotency-Key header so retries are safe. See API conventions.
