Execute
POST /execute
Polymarket trades are proxied to the execution service; Kalshi trades are handled in-process. Live mode (mode="live") requires a Privy wallet-auth JWT in the Authorization header. See API_REFERENCE.md §7.1 for the full SSE event reference.
Authorization
privy AuthorizationBearer <token>
Privy access token. For live POST /execute, use the wallet-auth JWT instead.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
text/event-stream
curl -X POST "https://api.pear.trade/execute" \ -H "Content-Type: application/json" \ -d '{ "marketId": "string", "side": "buy", "outcome": "yes", "size": 0 }'Empty
Empty
Empty
Empty
Empty