Skip to main content
POST
Open an early cashout auction to exit an active on-chain position before settlement. Every market maker may bid one all-in price. The stream shows the highest live bid, and ties go to the earliest. Accept it with Commit cashout to exit on-chain at that price or better. You identify the position by its on-chain position_id. The position must:
  • be active (executed)
  • be owned by you
  • have a counterparty market maker assigned
  • not be within the near-expiry buffer of its market end (the cashout cutoff on Limits and fees)

Authentication

Send your API key in the X-API-Key header. The key needs the trading:write scope.
A Privy JWT (Authorization: Bearer <jwt>) is also accepted. See Authentication.

Request body

string
required
The position’s on-chain id. A 16-byte hex string (32 hex chars), with or without a 0x prefix.

Response

object

Response codes

Opening is idempotent per (position, user), so a double-tap resumes the live auction instead of splitting bids across two. Check the status code or expires_at before you assume a fresh window.

Errors