API reference · preview
PROBITAL API
Example interfaces describing the planned API. Endpoints are not yet live; this page documents the contract the simulated engine already follows. Prices are integer cents (1–99); one contract pays 100¢.
REST
GET
/v1/marketsList markets with filters: category, status, sort.GET
/v1/markets/{id}/bookAggregated YES order book (price levels, contracts).POST
/v1/ordersPlace a market or limit order. Collateral is reserved up front.PATCH
/v1/orders/{id}Modify price or size (cancel-replace, loses time priority).DELETE
/v1/orders/{id}Cancel an open order and release reserved collateral.GET
/v1/positionsOpen positions with mark, cost basis and unrealized P&L.GET
/v1/ledgerDouble-entry ledger entries for the account.Place an order
POST /v1/orders
Authorization: Bearer <api_key>
Content-Type: application/json
{ "market_id": "fed-cut-next", "outcome": "YES",
"type": "limit", "limit": 38, "qty": 250,
"client_order_id": "desk-a-00017" }
→ 201 { "id": "O1042", "status": "open", "filled": 0,
"reserved": 9500, "seq": 1042 }WebSocket
wss://api.probital.ai/v1/stream
→ { "op": "subscribe", "channels": ["book:fed-cut-next", "trades:fed-cut-next", "orders"] }
← { "ch": "book:fed-cut-next", "seq": 88121,
"bids": [[37, 1420], [36, 980]], "asks": [[39, 610], [40, 1200]] }
← { "ch": "trades:fed-cut-next", "price": 39, "qty": 25, "ts": 1764672000000 }Matching rules
- Single YES book per market; buying NO at q¢ is an offer of YES at (100 − q)¢.
- Price-time priority; executions occur at the resting order's price.
- Orders are fully collateralized at their limit before entering the book; unused collateral is released.
- Holding YES and NO in the same market nets into cash at 100¢ per pair.