Get reward percentages
Endpoint
Section titled “Endpoint”GET /rewards/user/percentagesServer: https://api.openfish.fun
Authentication: L2 (HMAC) required
Authentication Headers
Section titled “Authentication Headers”| Header | Description |
|---|---|
OPENFISH_API_KEY | API key (UUID) |
OPENFISH_TIMESTAMP | Unix timestamp |
OPENFISH_PASSPHRASE | API passphrase |
OPENFISH_SIGNATURE | HMAC-SHA256 signature |
Query Parameters
Section titled “Query Parameters”| Name | Type | Default | Description |
|---|---|---|---|
signature_type | integer | 0 | Signature type (0=EOA, 1=PROXY, 2=SAFE) |
Responses
Section titled “Responses”200 — Reward percentages retrieved
Section titled “200 — Reward percentages retrieved”A JSON object mapping each condition_id to the user’s volume share (as a percentage) in that market.
Example Response:
{ "0xbd31dc8a...": 2.54, "0x197fe501...": 8.12, "0xfcd32f70...": 0.0}401 — Unauthorized
Section titled “401 — Unauthorized”{ "error": "invalid authorization" }