Open a Request for Quote
RFQs let you broadcast your trading intent so that market makers can compete to fill it. After creation, any authenticated participant can respond with a quote through POST /rfq/quote.
Endpoint
Section titled “Endpoint”POST /rfq/requestServer: https://api.openfish.fun
Authentication: L2 (HMAC) required
Request Body
Section titled “Request Body”Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
tokenId | string | Yes | Token ID (asset ID) to trade |
side | string | Yes | "BUY" or "SELL" |
size | string | Yes | Requested size |
Sample Request Body
Section titled “Sample Request Body”{ "tokenId": "52114319501245915516055106046884209969926127482827954674443846427813813222426", "side": "BUY", "size": "100"}Responses
Section titled “Responses”200 — RFQ created
Section titled “200 — RFQ created”| Field | Type | Description |
|---|---|---|
rfqId | string | UUID of the created RFQ |
status | string | "OPEN" |
tokenId | string | Token ID |
side | string | "BUY" or "SELL" |
size | string | Requested size |
ttlMinutes | integer | Time to live (10 minutes) |
{ "rfqId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "status": "OPEN", "tokenId": "52114319...", "side": "BUY", "size": "100", "ttlMinutes": 10}400 — Bad Request
Section titled “400 — Bad Request”{ "error": "tokenId and size required" }401 — Unauthorized
Section titled “401 — Unauthorized”{ "error": "invalid authorization" }