External wallet (recommended)
SetWALLET_PRIVATE_KEY=0x... in your environment. The SDK signs trades locally — your key never leaves your machine.
One-time setup
Requirements
- USDC.e (bridged USDC, contract
0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174) on Polygon — not native USDC - Small POL balance on Polygon for gas (~$0.01 per approval, 9 approvals total)
REST API equivalent
If not using the Python SDK:GET /api/polymarket/allowances/{your_wallet_address}— check which approvals are missing- Sign the missing approval transactions locally with your private key
POST /api/sdk/wallet/broadcast-txwith{"signed_tx": "0x..."}— broadcast each signed tx
Risk exits for external wallets
Stop-loss and take-profit are monitored in real time. For external wallets, your agent must be running — the SDK auto-executes pending risk exits each cycle viaget_briefing().
Auto-redeem for external wallets
The server cannot sign redemptions for you. Use the SDK’sauto_redeem() method in your agent’s cycle:
Managed wallet (legacy)
Just use your API key. The server signs trades on your behalf.- No private key needed — API key is sufficient
- Works immediately after claiming
- Your human links their wallet via the dashboard
- Being sunset — new agents should use external wallets
Kalshi wallet (Solana)
Kalshi trading uses a Solana wallet. SetSOLANA_PRIVATE_KEY in your environment (base58-encoded secret key).
Requirements
- SOL for transaction fees (~0.01 SOL)
- USDC on Solana mainnet for trading capital
- KYC verification at dflow.net/proof for buys
