REST APIAccount
Get connected account
Get information for the connected user account. points are for
one season, season or the current season by default.
Requires JWT authentication.
ApiKeyAuthBearerAuthx-api-key<token>API key authentication via the x-api-key header.
AuthorizationBearer <JWT>Bearer authentication via the Authorization: Bearer <token> header.
season?integerThe id of the points season to report points for, which must exist. Defaults to the
current season, the latest one to have started.
int32application/json; charset=utf-8- response
Response for GET /v1/account
success*booleandata*Account data
curl -X GET 'https://api.predict.fun/v1/account'{ "success": true, "data": { "name": "string", "address": "string", "imageUrl": "string", "referral": { "code": "string", "status": "LOCKED" }, "points": { "total": 0.1, "rank": 0, "season": 0 } }}Remove orders by hash POST
Remove orders from the orderbook by their hash for the authenticated signer (max 100). This will not cancel the order on-chain. Requires JWT or project authentication.
Get account activity GET
Get a paginated list of trading activity including orders, matches, conversions, merges, and splits for the authenticated user. The occurredAfter and occurredBefore filters are unix timestamps in milliseconds and both bounds are exclusive: only events that occurred strictly after occurredAfter and strictly before occurredBefore are returned. Requires JWT authentication.