Python Examples
End-to-end Python scripts for common Outpoll REST and WebSocket workflows
Python Examples
Use these scripts to automate common Outpoll workflows.
Each script now lives in its own subsection.
Start here
Use Setup & Helpers first.
That page covers:
Python version and package install
authenticated REST helper
WebSocket auth helper
placeholder values you must replace
Trading workflows
Buy a Liquid Event — buy the most liquid market when the YES price hits a target
Set TP/SL on Open Positions — apply take-profit and stop-loss orders across all open positions
Copy Large Trades — watch the public trade feed and mirror trades above a chosen threshold
Monitoring
Cross-Platform Price Monitor — compare live best bids across Kalshi, Polymarket, and Outpoll
Related pages
Use these references when adapting the scripts:
Last updated
Was this helpful?

