Accept an RFQ Quote
When you supply only rfqId, the server automatically selects the most favorable non-expired PENDING quote: the lowest price for BUY-side requests and the highest price for SELL-side requests. All competing quotes are then rejected. Alternatively, specify quoteId to accept a particular quote directly.
Endpoint
Section titled “Endpoint”POST /rfq/acceptServer: https://api.openfish.fun
Authentication: L2 (HMAC) required
Request Body
Section titled “Request Body”Content-Type: application/json
Supply either rfqId (auto-selects the best quote) or quoteId (accepts a specific quote).
| Field | Type | Required | Description |
|---|---|---|---|
rfqId | string (UUID) | No | RFQ ID — auto-selects best quote |
quoteId | string (UUID) | No | Quote ID — accepts this specific quote |
Example: Auto best-quote
Section titled “Example: Auto best-quote”{ "rfqId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890" }Example: Direct quote acceptance
Section titled “Example: Direct quote acceptance”{ "quoteId": "f1e2d3c4-b5a6-7890-fedc-ba0987654321" }Responses
Section titled “Responses”200 — Quote accepted
Section titled “200 — Quote accepted”| Field | Type | Description |
|---|---|---|
quoteId | string | Accepted quote UUID |
rfqId | string | Parent RFQ UUID |
status | string | "ACCEPTED" |
{ "quoteId": "f1e2d3c4-b5a6-7890-fedc-ba0987654321", "rfqId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "status": "ACCEPTED"}400 — Bad Request
Section titled “400 — Bad Request”{ "error": "rfqId or quoteId required" }404 — Not Found
Section titled “404 — Not Found”{ "error": "no valid quotes available" }401 — Unauthorized
Section titled “401 — Unauthorized”{ "error": "invalid authorization" }