# Python Examples

## Python Examples

Use these scripts to automate common Outpoll workflows.

Each script now lives in its own subsection.

### Start here

Use [Setup & Helpers](https://docs.outpoll.com/api/rest-api/python-examples/setup-and-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](https://docs.outpoll.com/api/rest-api/python-examples/buy-a-liquid-event) — buy the most liquid market when the YES price hits a target
* [Set TP/SL on Open Positions](https://docs.outpoll.com/api/rest-api/python-examples/set-tp-sl-on-open-positions) — apply take-profit and stop-loss orders across all open positions
* [Copy Large Trades](https://docs.outpoll.com/api/rest-api/python-examples/copy-large-trades) — watch the public trade feed and mirror trades above a chosen threshold

### Monitoring

* [Cross-Platform Price Monitor](https://docs.outpoll.com/api/rest-api/python-examples/cross-platform-price-monitor) — compare live best bids across Kalshi, Polymarket, and Outpoll

### Related pages

Use these references when adapting the scripts:

* [Public API Overview](https://docs.outpoll.com/api/rest-api/public-endpoints/public-api-overview)
* [WebSocket API Reference](https://docs.outpoll.com/api/rest-api/websockets/websocket-api-reference)
* [Orders](https://docs.outpoll.com/api/rest-api/private-endpoints/orders)
* [Balances](https://docs.outpoll.com/api/rest-api/private-endpoints/balances)
