added readme
This commit is contained in:
parent
cdf3c70ff9
commit
371a096fa4
1 changed files with 16 additions and 0 deletions
16
README.md
Normal file
16
README.md
Normal 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
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue