The Bot Ledger
EN

Home / Guides

Guides

Connect a trading bot to each exchange in five steps: auth, order book, orders, fills, settlement, with simplified Python and an AI prompt.

Each guide takes one exchange and walks the same five steps: get credentials, find a market and its order book, place and cancel an order, read your fills, and handle settlement. The Python is simplified on purpose: it shows the shape of each call so you can see how the exchange thinks, not production code with retries and backoff. Every guide also states the fee formula, the settlement rule that catches people out, which countries the exchange blocks, and a link to the official documentation, because the details change and the exchange is the only source of truth.

If you build with an AI assistant, each guide carries a copy-ready prompt that gives the assistant the facts it usually gets wrong: the auth flow, the fee, the order types, the traps. Paste it first, then ask your question.

Start with the exchange you can actually trade on from your country; the location check on the home page tells you which ones will accept an account. Then read the fees article before you write a strategy, because most of the ideas that fail here fail on the fee, not on the prediction.

  1. Connect a bot to Polymarket in five stepsPolymarket API basics for a bot: Gamma for markets, CLOB for orders, auth, order book, placing orders, fills and redeeming winnings, in Python.
  2. Connect a bot to Kalshi in five stepsKalshi API for a bot, in Python: signed requests, the order book shape, placing and cancelling orders, fills, and free candlestick history.
  3. Connect a bot to Predict.fun in five stepsPredict.fun API for a bot: auth, listing 5-minute markets, the ladder, taker orders, fills, and the settlement rule that differs from the rest.
  4. Connect a bot to Limitless in five stepsLimitless Exchange API for a bot: wallet auth, markets, the book, signed orders, on-chain fills on Base, and a fee paid in tokens.