REST API

Place a prediction market order

POST
/prediction/orders/place

Authorization

bearerAuth
AuthorizationBearer <token>

API key passed as Bearer token in Authorization header

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://loading/api/v1/prediction/orders/place" \  -H "Content-Type: application/json" \  -d '{    "tokenId": "string",    "side": "BUY",    "price": 0.001,    "size": 1  }'
{
  "success": true,
  "data": {
    "success": true,
    "order": {
      "id": "string",
      "tokenId": "string",
      "marketId": "string",
      "side": "BUY",
      "price": 0,
      "size": 0,
      "filledSize": 0,
      "status": "open",
      "createdAt": "string"
    }
  },
  "meta": {
    "timestamp": 0,
    "remaining": 0
  }
}