Get market rewards
Endpoint
Section titled “Endpoint”GET /rewards/markets/{condition_id}Server: https://api.openfish.fun
Authentication: None required
Path Parameters
Section titled “Path Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
condition_id | string | Yes | Condition ID of the market |
Responses
Section titled “Responses”200 — Market rewards retrieved
Section titled “200 — Market rewards retrieved”Schema: PaginatedMarketReward
| Field | Type | Required | Description |
|---|---|---|---|
limit | integer | Yes | Maximum items per page (50) |
count | integer | Yes | Number of items returned |
next_cursor | string | Yes | Cursor for next page. "LTE=" = last page. |
data | array of TraderReward | Yes | Top traders in this market |
TraderReward Schema:
| Field | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | API key of the trader |
volume | string | Yes | Total trading volume |
fees_paid | string | Yes | Fees paid by this trader |
num_trades | integer | Yes | Number of trades |
estimated_reward | string | Yes | Estimated reward (0.1% of volume) |
Example Response:
{ "limit": 50, "count": 1, "next_cursor": "LTE=", "data": [ { "owner": "9180014b-33c8-9240-a14b-bdca11c0a465", "volume": "5000.00", "fees_paid": "25.00", "num_trades": 120, "estimated_reward": "5.00" } ]}500 — Internal server error
Section titled “500 — Internal server error”{ "error": "Internal server error" }