● Open sourceAlgorithmic Trading

Trader Bot.

A trading desk in your terminal

A terminal-native algorithmic trading bot on the Alpaca API — a real strategy engine (RSI + Bollinger Bands), sentiment signals, and persistent trade memory, all driven from a Rich-powered TUI.

PythonAlpaca APITyperRich
Platform Python · CLIBuilt 2025License MIT
traderbot — python
$ traderbot run --live
✓ Alpaca connected
› RSI 28.4 · BB lower breach
▲ BUY AAPL x12
● position logged
01 Overview

Strategy, sentiment, and state — in one CLI.

Trader Bot connects to the Alpaca brokerage API and runs a modular strategy engine combining RSI and Bollinger Band signals with lightweight sentiment analysis. It persists trading memory between runs, logs every action daily, and presents everything through a Rich terminal dashboard.

02 Features

What it does.

1

Strategy engine

RSI + Bollinger Band logic with configurable thresholds.

2

Sentiment signals

Layers market-sentiment analysis on top of the technical strategy.

3

Persistent memory

Saves positions and state across runs for continuity.

4

Rich TUI

A live terminal dashboard for positions, P&L, and signals.

5

Live brokerage

Executes against the Alpaca REST API.

6

Audit logs

Daily rotated logs of every decision and trade.

03 Engineering

How it's built.

LanguagePython 3
BrokerageAlpaca API
CLITyper
TUIRich
StrategyRSI · Bollinger
Statepersistent memory

Want a closer look?

Happy to demo Trader Bot live or walk through the architecture and trade-offs.