PredictAsiaX API Docs

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.

Live key required. Sandbox keys (from /v1/sandbox-keys, account ids starting bld_sbx_) trade in simulation only. They get 403 TIER_UPGRADE_REQUIRED on the endpoints below and never earn liquidity rewards or maker rebates. Get a live key with POST /v1/apply.

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
  }'
FieldRules
market_idRequired.
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_msOptional, default 30000. Values are clamped to 1000–300000. When it passes, any unfilled part is cancelled.
clear_priorOptional, 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_modeOptional. 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:

FieldMeaning
quotes_posted, quotes_rejectedCounts.
orders[]One entry per quote, in request order: index, ok, order_id, status, reject_reason (for example insufficient_balance).
prior_cancelledQuotes cancelled by clear_prior.
total_notional_usdt, quote_cap_usdtNotional of this call and your per-call quote cap.
expires_at_ms, ttl_msWhen 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.

CodeStatusWhen
QUOTE_CAP_EXCEEDED429The call's total notional is above quote_cap_usdt.
RISK_QUOTE_SIZE429A quote's size is above max_quote_size_shares.
RISK_MKT_NOTIONAL429Your resting quotes on the market plus this call would exceed max_notional_per_mkt.
RISK_GROSS_INV429Your gross inventory across markets is above max_gross_inventory; reduce positions before adding quotes.
NOT_REGISTERED403Call POST /v1/mm/apply first.
TIER_UPGRADE_REQUIRED403Sandbox key.
TOO_MANY400More than 20 quotes.
BELOW_MIN_NOTIONAL, ABOVE_MAX_NOTIONAL, INVALID_FIELD400A 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

MethodPathAuth
POST/v1/mm/applyLive key, orders:create or mm:quote
GET/v1/mm/statusKey
POST/v1/mm/quotesLive key, orders:create or mm:quote
POST/v1/mm/quoteAlias 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/rebatesportfolio:read
GET / PUT/v1/mm/me/risk-limitsKey