added readme

This commit is contained in:
Joe Lothan 2026-06-16 09:26:09 -04:00
parent cdf3c70ff9
commit 371a096fa4

16
README.md Normal file
View file

@ -0,0 +1,16 @@
# 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
```