REST APIOrders

Get order by hash

GET
/orders/{hash}

Get the order information for one of your own orders by its hash. 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.

Path Parameters

hash*string

The order's hash, in lowercase hex with the 0x prefix.

Lengthlength <= 66

Response Body

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

Response for GET /v1/orders/:hash

success*boolean
data*

Order data as returned by the API

Example Request
curl -X GET 'https://api.predict.fun/v1/orders/string'
Example Response200
{  "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  }}