Quote service
Create Cashout Request
Open an early cashout (buyback) request for an on chain position.
POST
Open a cashout request to close an active on chain position early instead of waiting for settlement. The request is offered to the position’s single counterparty market maker, who responds with a live buyback quote on the stream. Accepting that quote via Commit drives the buyback on chain and flips the RFQ to
A Privy JWT (
bought_back.
The request is keyed on the position’s on chain position_id — a 16 byte hex string (the 0x prefix is optional). The position must be active (executed), owned by you, have a counterparty MM assigned, and not be within the near expiry buffer of its market end.
Authentication
API key required. Pass your API key in theX-API-Key header.
Authorization: Bearer <jwt>) is also accepted — see Authentication.
Request body
The position’s on chain id — a 16 byte hex string (32 hex chars), with or without a
0x prefix.Response
Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | Body is not valid JSON, or position_id is not a 16 byte hex string. See details.issues. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 404 | NOT_FOUND | Position not found, or not owned by you. |
| 409 | CONFLICT | Position is not active, too close to expiry, or has no counterparty MM wallet assigned yet. |
| 503 | SERVICE_UNAVAILABLE | Eligibility/economics read failed, or no counterparty MM is resolvable yet; retry. |
