Place & Manage Orders
Authentication
x-api-key: YOUR_API_KEYCreate a new Order
Endpoint
POST /create-orderFull URL
https://api.predictbase.app/create-orderRequest Body
{
"kind": "NEW_ORDER",
"order": {
"type": "LIMIT",
"side": "BUY",
"marketId": "10744",
"optionIndex": 0,
"qty": 1,
"price": 0.42,
"userId": "0xUserAddress",
"timeInForce": "GTC",
"receivedAt": 1765595666776
},
"meta": {
"clientOrderId": "ORD#abc123",
"originalQty": 1
}
Response (Success)
Update an Order
Endpoint
Full URL
Request Body
Response (Success)
Errors
Status
Meaning
Cancel an Order
Endpoint
Full URL
Response (Success)
Possible Errors
Status
Meaning
View your Orders
Endpoint
Full URL
Response (Success)
Behavior
💡 Common Use Cases
Last updated