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.
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) and daily notional limit exactly like an order; going over returns TIER_LIMIT_EXCEEDED, and a quote that was not placed gives its share of the daily limit 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.
5. 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.
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/mm/quotes/{market_id} | portfolio:read |
| GET | /v1/mm/me/rebates | portfolio:read |
| GET / PUT | /v1/mm/me/risk-limits | Key |