REST APIOrders

Get orders

GET
/orders

Get a list of your own orders with optional filters. Requires JWT authentication.

Authorization

ApiKeyAuthBearerAuth
headerx-api-key<token>

API key authentication via the x-api-key header.

headerAuthorizationBearer <JWT>

Bearer authentication via the Authorization: Bearer <token> header.

Query Parameters

first?integer

Page size, from 1 to 150. Defaults to 50. A value outside that range is clamped.

Formatint32
after?string

The cursor from the previous page, to get the next one.

Lengthlength <= 1024
status?string

Only orders with this status. Defaults to OPEN.

Value in"OPEN""FILLED"

Response Body

application/json; charset=utf-8
  1. response

Response for GET /v1/orders

success*boolean
cursor?string
data*array<>
Example Request
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    }  ]}