Crypto backtesting
Loading...
Searching...
No Matches
convert.sh
Go to the documentation of this file.
1#!bin/bash
2
3# For each JSON file, convert to CSV in parallel
4
5# Stocks
6find /tmp/stocks -name '*.json' | parallel --eta -j $(nproc) 'cat {} | python3 bin/marketstack2csv.py > {.}.csv'
7ls -l /tmp/stocks/*.csv
8
9# Crypto
10find /tmp/tokens -name '*.json' | parallel --eta -j $(nproc) 'cat {} | python3 bin/json2csv.py > {.}.csv'
11ls -l /tmp/tokens/*.csv