diff --git a/setup.py b/setup.py index a47b496..53432ca 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name="tradingfeatures", - version="0.7.1", + version="0.7.2", author="Onur Cetinkol", author_email="realiti44@gmail.com", description="A useful tool to download market history from popular exchanges.", diff --git a/tradingfeatures/api_base.py b/tradingfeatures/api_base.py index f9f5fbc..1c295cd 100644 --- a/tradingfeatures/api_base.py +++ b/tradingfeatures/api_base.py @@ -127,8 +127,8 @@ def get_hist( df_temp = pd.DataFrame() assert ( len(df) == 0 - ), "Warning: Got empty window from exchange in middle of download" - print(" Warning: Got empty window from exchange at start") + ), f"Warning: Got empty window from exchange in middle of download for {self.name}" + print(f" Warning: Got empty window from exchange at start for {self.name}") except Exception as e: # raise e print(e, "\nDebug: error between timestamps: ", start_batch, end_batch) diff --git a/tradingfeatures/apis/bitmex/base.py b/tradingfeatures/apis/bitmex/base.py index 05f2511..331db4f 100644 --- a/tradingfeatures/apis/bitmex/base.py +++ b/tradingfeatures/apis/bitmex/base.py @@ -33,7 +33,7 @@ def __init__(self): ] self.symbol_dict = { - "btcusd": "XBT", + "btcusd": "XBTUSD", "ethusd": "ETH", # 'ethbtc': 'ETHBTC', "ltcusd": "LTC",