handle to_symb longer than 3 chars on cryptocompare

This commit is contained in:
wassname
2017-11-10 11:03:46 +08:00
parent 2972908cb9
commit 7351c794ed
+1 -1
View File
@@ -42,7 +42,7 @@ def get_historical_prices(source='cryptocompare', symbol=None, exchange=None,
# Parse from (first 3) and to (last 3) symbol from the parameter
# symbol.
from_sym = symbol[:3]
to_sym = symbol[3:6]
to_sym = symbol[3:]
func = partial(get_histo, period=period, fsym=from_sym, tsym=to_sym,
e=exchange)