search_markets
Search prediction markets
Find events and their markets with live odds. Filter by free-text query, category slug (see predict://categories), sort and status. Each event lists markets with outcomes, token ids, best bid/ask, tick size and a human URL.
输入参数qsortlimitoffsetstatuscategorymaxMarkets
Full event by slug: every market, outcome names and prices, token ids, tick size, min order size, rules summary, resolution source and status. Optionally include recent trades.
输入参数slug必填recentTrades
get_orderbook
Get the order book
Live order book for one outcome token: bids and asks (price 0-1, size in shares), spread, midpoint and last trade.
输入参数depthtokenId必填
get_price_history
Get price history
Price (probability) history for one outcome token over a range.
输入参数rangetokenId必填
quote_order
Quote an order (fee-inclusive)
Preview an order against the live book without placing it: average and worst price, shares, cost, payout if the outcome wins, Polymarket fee, predictDEX fee and warnings. Market BUY amount is USD to spend all-in; market SELL and limit amounts are shares.
输入参数sidetypepriceamount必填tokenId必填postOnlyslippageorderTypeexpiration
get_trading_setup
How to trade through predictDEX
Everything an agent with its own wallet needs to trade: chain, collateral (pUSD), builder code, signer URL, attestation steps, fees and a ready-to-run TypeScript snippet using Polymarket's official SDK. Non-custodial: you sign with your own key.
无需输入参数。
create_trade_link
Create a trade link for a person
A pre-filled predictDEX ticket URL (event, market, outcome, side, amount) for a person to review and sign in their own wallet. Opening it executes nothing. Use this when you have no wallet or need human confirmation.
输入参数sideslug必填amountmarketoutcome
get_positions
Get positions of a wallet
Open positions of a Polymarket trading account or its owner address: size, average price, current price, value and P&L.
输入参数address必填
get_leaderboard
Get the trader leaderboard
Top Polymarket traders by profit or volume over a window.
输入参数limitmetricwindow
get_agent_challenge
Get an agent attestation challenge
Returns the canonical 'predictDEX Agent Attestation v1' message for your address. Sign it with EIP-191 personal_sign within 10 minutes and pass it to attest_agent.
输入参数address必填
attest_agent
Attest as an agent (get a token)
Submit the signed attestation. Returns a 30-day agent token that unlocks gasless Polymarket account setup through predictDEX's signer for your address only. It grants no custody and no exemption from region rules.
输入参数address必填message必填signature必填