Appearance
Trading Bot CLIs
Octagon publishes two command-line trading bots, one per venue. Each is a single integrated tool for research and trading. It pairs live venue market data with the Octagon Research API, so market discovery, probability modeling, position sizing, and order execution all happen in one place. Both run as an interactive terminal application for traders and researchers. Both also expose a structured JSON command-line API for scripts, automations, and AI agents.
| Tool | What it covers |
|---|---|
| Kalshi CLI | Research and trading across Kalshi, plus clustering, correlation, and basket construction. |
| Polymarket CLI | Research and trading across Polymarket, with wallet-based order placement. |
Pick the page for the venue you trade. Each page covers installation, Octagon and LLM setup, the full command surface, and the JSON contract.
Command support
The two tools share a command vocabulary. Where they differ, it is because the venue or the research data underneath differs.
| Kalshi | Polymarket | Notes | |
|---|---|---|---|
search, search edge | ✓ | ✓ | |
analyze | ✓ | ✓ | |
report, trust | ✓ | ✓ | |
events, catalysts | ✓ | ✓ | |
similar | ✓ | ✓ | Kalshi matches semantically; Polymarket matches by taxonomy — event, then series, then category. |
themes | ✓ | — | |
watch, backtest | ✓ | ✓ | |
clusters, peers | ✓ | — | |
correlate | ✓ | — | |
basket | ✓ | — | |
series | ✓ | — | |
buy, sell | ✓ | ✓ | Kalshi prices in integer cents; Polymarket in decimal dollars. |
| Cancelling | cancel <id> | orders cancel <id> | Polymarket also accepts a unique id prefix, several ids at once, or --all. |
portfolio | ✓ | ✓ | |
wallet | — | ✓ | Polymarket trades from a wallet you import. |