Trading
Deposit wallets supported. The SDK auto-detects Safe proxy and deposit wallet users. No code changes needed for existing integrations. See the Deposit Wallets guide.
Generate a Wallet
One-Call Onboarding
Place Orders
Cancel Orders
Open Orders
Pre-Trade Checks
Wallet Management
Address Derivation
Polymarket V2 Exchange
To trade on the Polymarket V2 exchange, setexchange_version on your TraderConfig:
1_000_000 = $1):
Fee Escrow
Charge per-order fees with on-chain escrow. Fees are pulled before the order, distributed on fill, and refunded on cancel. See the Fee Escrow Guide for the full architecture and security model.fee_bps=0 or omit fee_config to skip your platform fee entirely. This only turns off your fee — Polymarket’s protocol fee and (on V2) the builder rev share are charged independently by the CLOB. Per-order overrides:
Configuration
Signature Types
| Type | Value | Description |
|---|---|---|
SignatureType.EOA | 0 | Direct EOA signing (user pays gas for approvals) |
SignatureType.POLY_PROXY | 1 | Legacy Polymarket proxy wallet |
SignatureType.POLY_GNOSIS_SAFE | 2 | Gnosis Safe (default, gasless onboarding) |
SignatureType.POLY_1271 | 3 | Deposit wallet (newer Polymarket accounts, V2 only) |
Privy Signer (Server-Side Wallets)
Use Privy-managed wallets for headless server-side trading. No private key needed — signing is done through Privy’s wallet API:RouterSigner interface and works with all trading methods (ensure_ready, order, cancel_all, etc.). Gnosis Safe wallets (type 2) are fully gasless.

