# API

- [Introduction](https://docs.outpoll.com/api/introduction.md): Overview of the Outpoll APIs
- [FAQ](https://docs.outpoll.com/api/faq.md): Authentication, API keys, rate limits, and core integration rules
- [REST API](https://docs.outpoll.com/api/rest-api.md)
- [Public Endpoints](https://docs.outpoll.com/api/rest-api/public-endpoints.md)
- [Get Available Coins](https://docs.outpoll.com/api/rest-api/public-endpoints/get-available-coins.md): Return the list of supported coins and assets
- [Search Events](https://docs.outpoll.com/api/rest-api/public-endpoints/search-events.md): Search and browse prediction markets
- [Get Categories](https://docs.outpoll.com/api/rest-api/public-endpoints/get-categories.md): Retrieve all event categories
- [Get Popular Tags](https://docs.outpoll.com/api/rest-api/public-endpoints/get-popular-tags.md): Retrieve trending tags
- [Public API Overview](https://docs.outpoll.com/api/rest-api/public-endpoints/public-api-overview.md): Base URL, endpoint summary, pagination, and Python examples for public REST endpoints
- [Private Endpoints](https://docs.outpoll.com/api/rest-api/private-endpoints.md)
- [Portfolio](https://docs.outpoll.com/api/rest-api/private-endpoints/portfolio.md): Positions, balances, active orders, and deposit endpoints
- [History & Stats](https://docs.outpoll.com/api/rest-api/private-endpoints/history-and-stats.md): Orders, trades, transactions, activity, and trading metrics
- [API Key Management](https://docs.outpoll.com/api/rest-api/private-endpoints/api-key-management.md): Create, inspect, and revoke API keys
- [Revoke API Key](https://docs.outpoll.com/api/rest-api/private-endpoints/api-key-management/revoke-api-key.md): Revoke the active API key
- [Get Active API Key](https://docs.outpoll.com/api/rest-api/private-endpoints/api-key-management/get-active-api-key.md): Return metadata for the active API key
- [Create API Key](https://docs.outpoll.com/api/rest-api/private-endpoints/api-key-management/create-api-key.md): Create a new API key and return its secret once
- [API Keys](https://docs.outpoll.com/api/rest-api/private-endpoints/api-key-management/api-keys.md): Create, inspect, and revoke API keys
- [Orders](https://docs.outpoll.com/api/rest-api/private-endpoints/orders.md): Place, inspect, and cancel trading orders
- [Place Market Order](https://docs.outpoll.com/api/rest-api/private-endpoints/orders/place-market-order.md): Execute an order at the best available price
- [Get Active Orders](https://docs.outpoll.com/api/rest-api/private-endpoints/orders/get-active-orders.md): Return active unfilled orders
- [Cancel Order](https://docs.outpoll.com/api/rest-api/private-endpoints/orders/cancel-order.md): Cancel an active limit order
- [Place Limit Order](https://docs.outpoll.com/api/rest-api/private-endpoints/orders/place-limit-order.md): Place a limit order at a specific price
- [Take Profit / Stop Loss](https://docs.outpoll.com/api/rest-api/private-endpoints/orders/take-profit-stop-loss.md): Create take-profit and stop-loss orders for a position
- [Get TP/SL Orders](https://docs.outpoll.com/api/rest-api/private-endpoints/orders/get-tp-sl-orders.md): Return active take-profit and stop-loss orders
- [Cancel TP/SL Order](https://docs.outpoll.com/api/rest-api/private-endpoints/orders/cancel-tp-sl-order.md): Cancel an active take-profit or stop-loss order
- [Positions](https://docs.outpoll.com/api/rest-api/private-endpoints/positions.md): Open positions and active order snapshots
- [Balances](https://docs.outpoll.com/api/rest-api/private-endpoints/balances.md): Available and enriched balance views
- [Deposit](https://docs.outpoll.com/api/rest-api/private-endpoints/deposit.md): Retrieve the authenticated user's USDC deposit address
- [History](https://docs.outpoll.com/api/rest-api/private-endpoints/history.md): Orders, trades, transactions, activity, and profile metrics
- [Page 1](https://docs.outpoll.com/api/rest-api/private-endpoints/page-1.md)
- [Websockets](https://docs.outpoll.com/api/rest-api/websockets.md)
- [Order Book](https://docs.outpoll.com/api/rest-api/websockets/order-book.md): Real-time best bid, best ask, and last chance updates
- [Chance History](https://docs.outpoll.com/api/rest-api/websockets/chance-history.md): Real-time probability updates and chart history
- [Account & History Streams](https://docs.outpoll.com/api/rest-api/websockets/account-and-history-streams.md): Order, balance, activity, and trade WebSocket endpoints
- [Order Updates](https://docs.outpoll.com/api/rest-api/websockets/account-and-history-streams/order-updates.md): Real-time order execution and TP/SL status events
- [Balance Updates](https://docs.outpoll.com/api/rest-api/websockets/account-and-history-streams/balance-updates.md): Initial balance snapshot and live balance delta events
- [Order Feed](https://docs.outpoll.com/api/rest-api/websockets/account-and-history-streams/order-feed.md): Live order status events from the history service
- [Activity Feed](https://docs.outpoll.com/api/rest-api/websockets/account-and-history-streams/activity-feed.md): Live event activity stream with subscribe and unsubscribe
- [Last Trades Feed](https://docs.outpoll.com/api/rest-api/websockets/account-and-history-streams/last-trades-feed.md): Public stream of the latest platform trades
- [WebSocket API Reference](https://docs.outpoll.com/api/rest-api/websockets/websocket-api-reference.md): Full authentication, message, and stream reference for all WebSocket endpoints
- [Python Examples](https://docs.outpoll.com/api/rest-api/python-examples.md): End-to-end Python scripts for common Outpoll REST and WebSocket workflows
- [Setup & Helpers](https://docs.outpoll.com/api/rest-api/python-examples/setup-and-helpers.md): Python environment setup and shared REST and WebSocket helpers
- [Buy a Liquid Event](https://docs.outpoll.com/api/rest-api/python-examples/buy-a-liquid-event.md): Monitor a liquid market and place a market buy when the YES price reaches a target
- [Set TP/SL on Open Positions](https://docs.outpoll.com/api/rest-api/python-examples/set-tp-sl-on-open-positions.md): Fetch open positions and submit one take-profit and stop-loss order per position
- [Copy Large Trades](https://docs.outpoll.com/api/rest-api/python-examples/copy-large-trades.md): Listen to the public trade feed and copy trades above a chosen value threshold
- [Cross-Platform Price Monitor](https://docs.outpoll.com/api/rest-api/python-examples/cross-platform-price-monitor.md): Compare live best bids across Kalshi, Polymarket, and Outpoll


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.outpoll.com/api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
