Skip to content

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.

MethodPathDescription
GET/fee-rate?token_id=...Query parameter variant
GET/fee-rate/{token_id}Path parameter variant

Base URL: https://api.openfish.fun

None required.

ParameterTypeRequiredDescription
token_idstringYesToken ID (asset ID) — as query param or path param
{
"base_fee": 10
}
FieldTypeDescription
base_feeintegerFee rate in basis points

The taker fee is calculated as: size * (fee_bps / 10000) * price * (1 - price). Maker fee is zero.

Terminal window
# Query parameter
curl "https://api.openfish.fun/fee-rate?token_id=0xabc123..."
# Path parameter
curl "https://api.openfish.fun/fee-rate/0xabc123..."