Skip to content

Commit

Permalink
bitmex api bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
realiti4 committed Apr 6, 2021
1 parent 6126bd8 commit d097cb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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.5.6",
version="0.6.0",
author="Onur Cetinkol",
author_email="realiti44@gmail.com",
description="A useful tool to download market history from popular exchanges.",
Expand Down
6 changes: 4 additions & 2 deletions tradingfeatures/apis/bitmex/quote.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ def get(self, query=None, start=None, end=None, *args, **kwargs):
*args, **kwargs
)

def get_hist(self, convert_funds=False, *args, **kwargs):
self._start_check(self.address, kwargs['symbol'])
def get_hist(self, symbol=None, convert_funds=False, *args, **kwargs):
symbol = symbol or 'btcusd'
self._start_check(self.address, symbol=symbol)
# columns = ['bidSize', 'bidPrice', 'askPrice', 'askSize'] if columns is None else columns

df = apiBase.get_hist(
self,
symbol=symbol,
# columns=columns,
# interval='8h',
*args, **kwargs
Expand Down

0 comments on commit d097cb7

Please sign in to comment.