mkdirohlcv
mapfile-tcoins<<(cattransactions/records-*.csv|venv/bin/python3coins.py|tr-d'\r')echo"${coins[@]@Q}"mapfile-tyears<<(findtransactions-name'records-*.csv'\-printf'%P\n'|tr-cd'0-9\n')echo"${years[@]@Q}"i=0;foryearin"${years[@]}";doforcoinin"${coins[@]}";doecho"$((++i)): fetching year $year coin $coin"bashfetch.sh../ohlcv-fetchers/binance.py\"$coin/USDT"1d"$year">"ohlcv/$year-$coin-USDT-1d.csv"sleep2# Just to be on the safe sidedone;doneforfileinohlcv/*.csv;doif[!-s"$file"];thenecho"Removing empty CSV file: $file"rm"$file"fidone