No description
Find a file
2026-06-16 09:26:09 -04:00
.env.example added env example 2026-06-16 09:11:44 -04:00
.gitignore initial commit 2026-06-15 14:41:01 -04:00
djia_symbols.txt added symbols text files 2026-06-16 09:08:01 -04:00
glyphs.py make fractions look better 2026-06-15 18:52:35 -04:00
nyse_symbols.txt added symbols text files 2026-06-16 09:08:01 -04:00
print_tape.py calculate length of tape 2026-06-15 20:50:36 -04:00
pyproject.toml added pyproject and uv.lock 2026-06-16 09:19:38 -04:00
README.md added readme 2026-06-16 09:26:09 -04:00
sp100_symbols.txt added symbols text files 2026-06-16 09:08:01 -04:00
sp500_symbols.txt added symbols text files 2026-06-16 09:08:01 -04:00
ticker_tape.py changed flag name to generic --symbol-file 2026-06-16 09:20:10 -04:00
uv.lock added pyproject and uv.lock 2026-06-16 09:19:38 -04:00

Ticker Tape

To download a list of trades from a specific day from Alpaca, make an account on https://alpaca.markets/ and set APCA_API_KEY_ID and APCA_API_SECRET_KEY environment variables.

Then use ticker_tape.py to download and then sort them:

python ticker_tape.py --symbol-file sp100_symbols.txt --start 2026-06-12 --raw > trades_unsorted.csv
sort -t, -k1 trades_unsorted.csv > trades_sorted.csv

To generate ESC/POS commands for the receipt printer use print_tape.py:

uv run python print_tape.py -o ticker_tape.escpos trades_sorted.csv