Compare commits

..

No commits in common. "29b8c29bda5086fb9cc9c8b24b3baa776586af0f" and "f0c565aaf790e284c358a207e2d0a87ad0c690b5" have entirely different histories.

2 changed files with 3 additions and 6 deletions

View File

@ -84,7 +84,6 @@ function get_marketdata_yahoo {
[[ $f_item = "PT-USD" ]] && f_item="PT28582-USD" [[ $f_item = "PT-USD" ]] && f_item="PT28582-USD"
[[ $f_item = "BLAST-USD" ]] && f_item="BLAST28480-USD" [[ $f_item = "BLAST-USD" ]] && f_item="BLAST28480-USD"
[[ $f_item = "GRT-USD" ]] && f_item="GRT6719-USD" [[ $f_item = "GRT-USD" ]] && f_item="GRT6719-USD"
[[ $f_item = "ARTY-USD" ]] && f_item="ARTY23751-USD"
# end if already failed the last 5 minutes # end if already failed the last 5 minutes
if [ -f "FAILED_YAHOO/${f_name}_HISTORIC_DOWNLOAD" ] if [ -f "FAILED_YAHOO/${f_name}_HISTORIC_DOWNLOAD" ]

View File

@ -188,7 +188,6 @@ function get_transactions {
## Get converts on supported exchanges since 2022 ## Get converts on supported exchanges since 2022
if [[ $f_exchange = binance ]] if [[ $f_exchange = binance ]]
then then
local m y
printf -v f_convert_end_year '%(%Y)T' printf -v f_convert_end_year '%(%Y)T'
for ((y=2022;y<=$f_convert_end_year;y++)) for ((y=2022;y<=$f_convert_end_year;y++))
do do
@ -197,10 +196,9 @@ function get_transactions {
for ((m=1;m<=$f_convert_end_month;m++)) for ((m=1;m<=$f_convert_end_month;m++))
do do
f_start_date="$(date -d "$y-$m-1" +%s)001" f_start_date="$(date -d "$y-$m-1" +%s)001"
#em=$((m+1)) em=$((m+1))
#[ $em = 13 ] && em=1 [ $em = 13 ] && em=1
#f_aend_date="$(date -d "$y-$em-1" +%s)000" f_end_date="$(date -d "$y-$em-1" +%s)000"
f_end_date="$(date -d "$y-$m-1 +30days" +%s)000"
f_convert_file="TRANSACTIONS-$f_exchange/CONVERT-$y-$m" f_convert_file="TRANSACTIONS-$f_exchange/CONVERT-$y-$m"
[ -s "${f_convert_file}.csv" ] && continue [ -s "${f_convert_file}.csv" ] && continue