fix ccxt.base.errors.BadRequest: binance fetchConvertTradeHistory() the max interval between startTime and endTime is 30 days.

This commit is contained in:
olli 2024-08-27 22:23:49 +02:00
parent d9a82b2844
commit 91763326e1

View File

@ -200,7 +200,7 @@ function get_transactions {
#em=$((m+1))
#[ $em = 13 ] && em=1
#f_aend_date="$(date -d "$y-$em-1" +%s)000"
f_end_date="$(date -d "$y-$m-1 +30days" +%s)000"
f_end_date="$(date -d "$y-$m-1 +29days" +%s)000"
f_convert_file="TRANSACTIONS-$f_exchange/CONVERT-$y-$m"
[ -s "${f_convert_file}.csv" ] && continue