REST APIOrders
Get order by hash
Get the order information for one of your own orders by its hash. 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.
hash*stringThe order's hash, in lowercase hex with the 0x prefix.
length <= 66application/json; charset=utf-8- response
Response for GET /v1/orders/:hash
success*booleandata*Order data as returned by the API
curl -X GET 'https://api.predict.fun/v1/orders/string'{ "success": true, "data": { "order": { "hash": "string", "salt": "string", "maker": "string", "signer": "string", "taker": "string", "tokenId": "string", "makerAmount": "string", "takerAmount": "string", "expiration": 0, "nonce": "string", "feeRateBps": "string", "side": 0, "signatureType": 0, "signature": "string" }, "id": "string", "marketId": 0, "currency": "string", "amount": "string", "amountFilled": "string", "isNegRisk": true, "isYieldBearing": true, "strategy": "MARKET", "status": "OPEN", "rewardEarningRate": 0 }}Get series rounds GET
Get the rounds of a series, each one a category with its markets. ACTIVE, the default, lists the rounds that have not ended yet in start order, so the first is the live round, and the rest are the rounds it rolls over to. Rounds are created ahead of time, so one page is enough to follow a series through several rollovers. ENDED lists the rounds that have ended, newest first. Pages are cached for a few seconds, so a round can still be listed as active for a moment after its endsAt.
Get orders GET
Get a list of your own orders with optional filters. Requires JWT authentication.