/api/accounts/*).
Find a market
Before placing a trade, fetch the venue-specific identifiers for the outcome you want to trade from the Data API. Pass them to the Trading API in amarket bag.
market bag:
| Venue | Required market fields | Notes |
|---|---|---|
| Polymarket | tokenId | Each outcome (Yes/No) has its own token ID. |
| Predict | tokenId + marketId | Both required - marketId is the numeric Predict market ID. |
| Opinion | tokenId + marketId | Both required - tokenId identifies the outcome side, marketId is the numeric Opinion market ID. |
| Limitless | tokenId + marketSlug | marketSlug identifies the Limitless market (e.g., "btc-up-or-down-1-hour-1778011201918" - real slugs include a unix-millis suffix). |
| Hyperliquid | assetId | Identifies a specific HIP-4 outcome side. |
Choose an order type
Market orders
Execute immediately at the best available price.- Market BUY - specify
amount(stablecoin to spend). Fills as many shares as possible. (Hyperliquid: takessize, notamount.) - Market SELL - specify
size(shares to sell). Sells at the best available price.
Limit orders
Sit on the orderbook at a specific price until someone takes the other side.- Limit BUY / SELL - specify
sizeandprice. Order rests until matched.
Amount vs size vs price
| Order Type | Required | Rejected |
|---|---|---|
| Market BUY | amount | size |
| Market SELL | size | amount |
| Limit BUY | size + price | amount |
| Limit SELL | size + price | amount |
400 with a message indicating which field was expected.
Place an order
All orders go toPOST /api/accounts/{accountId}/orders with venue set to polymarket, predict, opinion, limitless, or hyperliquid. See the Place Order reference for the full schema and per-venue examples.
Polymarket
Predict
Opinion
Opinion requires bothtokenId (the outcome side) and marketId (the numeric market ID).
Limitless
Limitless requires bothtokenId and marketSlug. Prices snap to 0.001 ticks; size supports up to 3 decimal places.
Hyperliquid
Hyperliquid usesassetId to identify a specific HIP-4 outcome side. Each side of each market has a unique integer assetId; for recurring markets like the daily BTC binary, the asset ID rotates each cycle - fetch the current value from your market data source before each order. Every order - buy or sell - must clear a $10 notional minimum (size × price ≥ 10).
size (the share count to acquire), not amount.
Response shape
Account-path order responses use a normalized shape:status is normalized across venues: open | filled | cancelled | expired | pending | failed.
Venue differences
| Polymarket | Predict | Opinion | Limitless | Hyperliquid | |
|---|---|---|---|---|---|
| Chain | Polygon | BSC | BSC | Base | HyperCore |
| Collateral | pUSD | USDT | USDT | USDC (native) | USDH (USDC-pegged) |
market requires | tokenId | tokenId + marketId | tokenId + marketId | tokenId + marketSlug | assetId |
| Price tick | Per-market (typically 0.01) | Per-market (typically 0.01) | market-specific | 0.001 (3 decimals) | up to 5 sig figs |
| Min order | Per CLOB (typically $1) | Per CLOB (typically $1) | market-specific | market-specific | $10 notional |
| Order queries | Full market bag | Full market bag | tokenId unavailable on reads - market contains marketId only | Full market bag | Full market bag |
| Fees | Configurable partner fee | Exchange fee varies by market (automatic) | Exchange fee varies by market (automatic) | Maker: 0%. Taker: 0.4%–3% per Limitless schedule | Per Hyperliquid HIP-4 schedule (automatic) |
After placing an order
- Monitor - Get Orders or Get Order
- Cancel - Cancel Order or Cancel All Orders
- Positions - filled orders appear in Get Positions
- Redeem - when a market resolves, Redeem Position cashes out winnings
Next Steps
Funding & Withdrawals
Deposit and withdraw funds
Fees & Monetization
Set up partner fees to monetize your app
Place Order Reference
Full endpoint reference
Get Positions Reference
Full endpoint reference
