Market Makers
Enroll with one call, then post quotes on any market. Every quote is a real post-only order on your platform balance: the same balance, fee and matching rules as POST /v1/orders, with a time-to-live after which it is cancelled automatically.
Running Hummingbot? Use the PredictAsiaX connector: Hummingbot connector.
1. Enroll
curl -X POST https://api.predictasiax.com/v1/mm/apply \
-H "Authorization: Bearer $PAX_KEY" -H "Content-Type: application/json" \
-d '{"display_name": "Acme Liquidity"}'
The key needs the orders:create or mm:quote scope. display_name is required (3–80 characters); contact is an optional object. Enrollment is approved on submit; there is no review step. Your tier (starter, pro or institutional) is assigned automatically each day from your share of maker volume over the last 30 days. Calling it again updates the display name and returns the same record.
Response data: user_id, display_name, status ("approved"), tier, quote_cap_usdt, created_at_ms, approved_at_ms, note. Read it back any time with GET /v1/mm/status.
Like every response on this API, timestamps ending in _ms are epoch milliseconds and USDT amounts, prices and sizes are decimal strings, for example "quote_cap_usdt": "10000".
2. Post quotes
curl -X POST https://api.predictasiax.com/v1/mm/quotes \
-H "Authorization: Bearer $PAX_KEY" -H "Content-Type: application/json" \
-d '{
"market_id": "hadjar-f1-2026",
"quotes": [
{"outcome": "YES", "side": "BID", "price": 0.41, "size": 100},
{"outcome": "YES", "side": "ASK", "price": 0.45, "size": 100}
],
"ttl_ms": 30000,
"clear_prior": true
}'
| Field | Rules |
|---|---|
| market_id | Required. |
| quotes[] | 1 to 20 quotes. outcome YES or NO; side BID or ASK; price strictly between 0 and 1, up to 4 decimals; size in shares, up to 6 decimals. Each quote's notional (price × size) must be between 1 and 100,000 USDT. |
| ttl_ms | Optional, default 30000. Values are clamped to 1000–300000. When it passes, any unfilled part is cancelled. |
| clear_prior | Optional, default false. When true, the quotes this account placed earlier on the same market through this endpoint are cancelled first. If any cannot be cancelled, nothing new is placed and the call returns 409 CLEAR_PRIOR_FAILED. |
| funding_mode | Optional. Builder accounts trade on the platform balance: omit it or send "platform"; anything else returns 400 INVALID_FUNDING_MODE. |
Quotes are post-only: a quote that would trade immediately against the book is rejected rather than taking liquidity. Each one is checked on its own, so a call can place some quotes and reject others; the top-level ok is false when at least one was rejected. POST /v1/mm/quote is an alias of the same call. It also accepts a single quote as {market_id, side, price, size, ttl_sec?}, where side yes or buy means a YES bid and no or sell a NO bid.
Response data:
| Field | Meaning |
|---|---|
| quotes_posted, quotes_rejected | Counts. |
| orders[] | One entry per quote, in request order: index, ok, order_id, status, reject_reason (for example insufficient_balance). |
| prior_cancelled | Quotes cancelled by clear_prior. |
| total_notional_usdt, quote_cap_usdt | Notional of this call and your per-call quote cap. |
| expires_at_ms, ttl_ms | When the quotes are cancelled if still resting. |
Limits
Each quote counts against your key's per-order limit (max_order_usdt) like an order; going over returns TIER_LIMIT_EXCEEDED. A quote rests on the book and never takes liquidity, so for a key of a builder account it does not use the daily notional limit, which counts only what your orders take (see Rate Limits). Other credentials count each quote against the daily limit when it is placed, and a quote that was not placed gives its share back. On top of that, market-maker risk limits apply. Read and lower them with GET / PUT /v1/mm/me/risk-limits.
| Code | Status | When |
|---|---|---|
| QUOTE_CAP_EXCEEDED | 429 | The call's total notional is above quote_cap_usdt. |
| RISK_QUOTE_SIZE | 429 | A quote's size is above max_quote_size_shares. |
| RISK_MKT_NOTIONAL | 429 | Your resting quotes on the market plus this call would exceed max_notional_per_mkt. |
| RISK_GROSS_INV | 429 | Your gross inventory across markets is above max_gross_inventory; reduce positions before adding quotes. |
| NOT_REGISTERED | 403 | Call POST /v1/mm/apply first. |
| TIER_UPGRADE_REQUIRED | 403 | Sandbox key. |
| TOO_MANY | 400 | More than 20 quotes. |
| BELOW_MIN_NOTIONAL, ABOVE_MAX_NOTIONAL, INVALID_FIELD | 400 | A quote failed validation; the message names it. |
3. Cancel
DELETE /v1/mm/quotes/{order_id} cancels one quote; order_id is the UUID from orders[]. The response says whether it was cancelled and, when it was, how much collateral was released (released_collateral). A quote that already filled, expired or was cancelled returns cancelled: false with current_status: "not_found".
4. Public quote book
GET /v1/mm/quotes?market_id=… needs no key. It aggregates the resting market-maker quotes on a market: market_id, as_of, maker_count, quote_count and book, where book.yes.bid, book.yes.ask, book.no.bid and book.no.ask are lists of {price, total_size, maker_count} (bids best first, asks best first). It reads the live orders, so cancels, expiries and fills show up at once; responses are cached for about 2 seconds. With a key, GET /v1/mm/quotes/{market_id} returns the same book.
For the whole matching book, every resting order and not only market-maker quotes, use GET /v1/markets/{id}/book (no key). It returns yes and no, each with bids and asks as lists of {price, size} decimal strings, best price first, and as_of_ms. A YES buy also fills against NO bids, at 1 minus the NO price, so price your quotes against both outcomes.
5. Live book stream
For a book that updates as it changes, open wss://predictasiax.com/ws (no key) and send {"method":"SUBSCRIBE","params":["book:<market_id>"]}. You get a book_snapshot, then a book_delta for every change and a last_trade for every trade. The stream shows one book in YES prices that already includes the NO orders: a NO bid at p shows as a YES ask at 1 − p and a NO ask at p as a YES bid at 1 − p.
| Frame | Fields |
|---|---|
| book_snapshot | market, seq, epoch, tick, ts, bids and asks as [price, size] decimal strings, best price first, and last_trade (or null). |
| book_delta | seq, ts, changes as [side, price, size] with side bid or ask and size the new total at that price ("0" removes the level), best_bid, best_ask. |
| last_trade | price, size, side (buy or sell: the direction of the order that took liquidity), ts. |
| book_error | code: MARKET_NOT_FOUND, CAPACITY or UNAVAILABLE (retry). |
seq rises by exactly one with every change. When a delta's seq is not the previous one plus one, or epoch changes, send {"method":"BOOK_SNAPSHOT","params":["book:<market_id>"]} and rebuild from the new snapshot. Delta sizes are absolute, so applying one twice is harmless. The same snapshot, with the same seq, is at https://predictasiax.com/api/orderbook/<market_id>?format=l2. A change of the market's tick size sends a new book_snapshot. Frame schemas: WebSocket API.
API keys of a builder account (every tier but sandbox and read_live) can also place and cancel orders on the same socket, with per-second limits that rise with your 30-day volume. See Orders on the WebSocket.
6. Your fills and orders
GET /v1/fills (scope orders:read) lists every fill of your account's orders, newest first, however the order was placed (POST /v1/orders, /v1/orders/batch or /v1/mm/quotes), including quotes that rested before they filled.
| Field | Meaning |
|---|---|
| trade_id, order_id, market_id, outcome_index | The trade and your order. trade_id is the same id as the order reply's trade id (fills[].trade_id and mint_fills[].trade_id from POST /v1/orders, trade_ids in the WebSocket order_ack), so you can match fills to the reply. A trade where you were on both sides is listed once for each side, with the same id. |
| side, action | Your order's outcome (YES / NO) and BUY / SELL. |
| role | maker when your order was resting on the book, taker when it traded on arrival. |
| price, size, fee_usdt | Your price per share in your order's outcome, the shares, and the fee charged on this fill. |
| executed_at_ms | When it filled. |
Filters: market_id, order_id, from_ms (inclusive) and to_ms (exclusive) on the fill time. limit is 1 to 200 (default 50); pass next_cursor back as cursor for the next page, until it is null.
GET /v1/orders/{order_id} returns one of your orders by the id you got when placing it, with the same fields as a GET /v1/orders item: status is OPEN while any part rests (filled_size shows what has filled), then FILLED or CANCELLED. An id that is not one of your orders returns 404 NOT_FOUND.
Both read the key's own account: on_behalf_of and subaccount_slot are not accepted here and return 400 NOT_SUPPORTED. Sandbox keys get the same shapes for their simulated orders, with is_simulated: true: each filled simulated order is one fill, with no fee.
7. Rebates
Maker rebates are credited to your platform balance as each fill settles. GET /v1/mm/me/rebates?from=YYYY-MM-DD&to=YYYY-MM-DD (default: the last 90 days) reports what was credited: totals (rebate_earned_usdt, maker_volume_usdt, fills_count, distinct_markets) and per_day_per_market[]. Rewards and rebates are paid to live accounts only.
8. Quote rewards
Resting two-sided quotes earn two daily rewards on top of the rebate, with nothing to apply for: each market's USDT stipend and the PAX quote reward (10,000,000 PAX over 180 days). GET /v1/lqf/pax (no key) shows today's estimated PAX pool for every market in the program; GET /v1/lqf/config shows what each market's USDT stipend can pay today (payable_today_usdt). Rules: PAX quote reward. Who earned the most PAX in the last seven days: GET /v1/lqf/pax/leaderboard. Your own rewards: Maker rewards on predictasiax.com. Each market in GET /v1/lqf/pax carries makers_today, the number of accounts that have qualified in it so far today.
Endpoints
| Method | Path | Auth |
|---|---|---|
| POST | /v1/mm/apply | Live key, orders:create or mm:quote |
| GET | /v1/mm/status | Key |
| POST | /v1/mm/quotes | Live key, orders:create or mm:quote |
| POST | /v1/mm/quote | Alias of the above |
| DELETE | /v1/mm/quotes/{order_id} | Live key, orders:create or mm:quote |
| GET | /v1/mm/quotes?market_id= | None |
| GET | /v1/markets/{id}/book | None |
| WS | book:<market_id> on wss://predictasiax.com/ws | None |
| GET | /v1/fills | orders:read |
| GET | /v1/orders/{order_id} | orders:read |
| GET | /v1/mm/quotes/{market_id} | portfolio:read |
| GET | /v1/mm/me/rebates | portfolio:read |
| GET | /v1/lqf/pax | None |
| GET | /v1/lqf/pax/leaderboard | None |
| GET | /v1/pax/buyback | None |
| GET / PUT | /v1/mm/me/risk-limits | Key |