From 7351c794ed43b11fdd187cc9c5e85eb4275c554a Mon Sep 17 00:00:00 2001 From: wassname Date: Fri, 10 Nov 2017 11:03:46 +0800 Subject: [PATCH] handle to_symb longer than 3 chars on cryptocompare --- libcryptomarket/historical.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcryptomarket/historical.py b/libcryptomarket/historical.py index e6eb121..b1e070f 100644 --- a/libcryptomarket/historical.py +++ b/libcryptomarket/historical.py @@ -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)