REST APIOrders
Get orders
GET
Get a list of your own orders with optional filters. Requires JWT authentication.
ApiKeyAuthBearerAuthheader
x-api-key<token>API key authentication via the x-api-key header.
header
AuthorizationBearer <JWT>Bearer authentication via the Authorization: Bearer <token> header.
first?integerPage size, from 1 to 150. Defaults to 50. A value outside that range is clamped.
Format
int32after?stringThe cursor from the previous page, to get the next one.
Length
length <= 1024status?stringOnly orders with this status. Defaults to OPEN.
Value in
"OPEN""FILLED"application/json; charset=utf-8- response
Response for GET /v1/orders
success*booleancursor?stringdata*array<>curl -X GET 'https://api.predict.fun/v1/orders'Example Response
{ "success": true, "cursor": "string", "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 } ]}