Get Fee Rate
Returns the fee rate (in basis points) that applies to a token’s market. Because each market’s fee is determined by the winning bid in its fee-rate auction, this value differs from market to market. Always query it at runtime rather than hard-coding.
Endpoints
Section titled “Endpoints”| Method | Path | Description |
|---|---|---|
GET | /fee-rate?token_id=... | Query parameter variant |
GET | /fee-rate/{token_id} | Path parameter variant |
Base URL: https://api.openfish.fun
Authentication
Section titled “Authentication”None required.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
token_id | string | Yes | Token ID (asset ID) — as query param or path param |
Response
Section titled “Response”{ "base_fee": 10}| Field | Type | Description |
|---|---|---|
base_fee | integer | Fee rate in basis points |
Fee Calculation
Section titled “Fee Calculation”The taker fee is calculated as: size * (fee_bps / 10000) * price * (1 - price). Maker fee is zero.
Example
Section titled “Example”# Query parametercurl "https://api.openfish.fun/fee-rate?token_id=0xabc123..."
# Path parametercurl "https://api.openfish.fun/fee-rate/0xabc123..."