pmxt_api_key to a confirmed position on Polymarket in under a minute. Hosted mode is the default: PMXT custodies USDC in PreFundedEscrow and your wallet only ever signs EIP-712 typed-data payloads — no private key leaves your machine when you trade.
Hosted trading currently supports Polymarket (Polygon) and Opinion (cross-chain). Other venues are read-only via the hosted catalog. To trade on those, run the self-hosted server with raw venue credentials.
1. Get an API key
Go to pmxt.dev/dashboard, create a key, and copy it. It looks likepmxt_live_... and works immediately.
2. Install the SDK
3. Construct a hosted client
A hosted trading client takes three things: your PMXT API key, the wallet address you’ll trade from, and the private key for that wallet (used only to sign EIP-712 messages locally — it is never sent to PMXT). The SDK auto-wrapsprivate_key into an EthAccountSigner / EthersSigner for you.
4. Approve and deposit USDC into escrow
Hosted trades execute against your balance in PMXT’sPreFundedEscrow contract. The first time you trade, you need to (a) approve the escrow to pull USDC from your wallet, and (b) deposit. Both methods on client.escrow build unsigned transactions — you submit them with your wallet (web3, ethers, viem, MetaMask, etc.).
Approval and deposit are one-time setup. Subsequent trades just spend from escrow until you withdraw. See Escrow Lifecycle for the full deposit / withdraw flow.
5. Place your first market order
Let’s buy 5 USDC of the YES outcome on “Will the Knicks win the 2026 NBA Championship?”. These UUIDs come straight from the live hosted catalog.6. Verify the fill
Hosted positions appear immediately onfetch_positions. The position’s quantity and notional reflect the escrow-side accounting.
- Escrow lifecycle — deposits, withdrawals, the request/claim timelock.
- Hosted errors — what each error means and how to recover.
- Signing — the EIP-712 protocol underneath
create_order. - Self-hosted — when to skip hosted and run pmxt-core yourself.

