Skip to content

Commit

Permalink
bitmex btc symbol fix
Browse files Browse the repository at this point in the history
  • Loading branch information
realiti4 committed Jan 21, 2024
1 parent e63efd4 commit 35cac79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
4 changes: 2 additions & 2 deletions tradingfeatures/api_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tradingfeatures/apis/bitmex/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self):
]

self.symbol_dict = {
"btcusd": "XBT",
"btcusd": "XBTUSD",
"ethusd": "ETH",
# 'ethbtc': 'ETHBTC',
"ltcusd": "LTC",
Expand Down

0 comments on commit 35cac79

Please sign in to comment.