Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
Fix linting warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
shanefontaine committed Dec 28, 2018
1 parent 382c9c5 commit 12c89da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ethfinex/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
name = "ethfniex"
name = "ethfniex"
6 changes: 3 additions & 3 deletions ethfinex/public_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,10 @@ def get_books(self, pair, precision, len=None):
accepted_len = [25, 100]
if len and len in accepted_len:
params['len'] = len
return self._send_message(f'/book/{pair}/{precision}', params=params)
elif len and len not in accepted_len:
raise ValueError('The len can only be 25 or 100.')

return self._send_message(f'/book/{pair}/{precision}')
return self._send_message(f'/book/{pair}/{precision}', params=params)

# TODO: Include 'side' for the 'pos.size' calls.
def get_stats(self, symbol, key, size, side, section, sort=None):
Expand Down Expand Up @@ -209,7 +208,8 @@ def get_candles(self, symbol, time_frame, section,
if sort:
params['sort'] = sort

return self._send_message(f'/candles/trade:{time_frame}:{symbol}/{section}',
url = 'candles/trade:'
return self._send_message(f'{url}{time_frame}:{symbol}/{section}',
params=params)

def _send_message(self, endpoint, params=None, data=None):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)
)

0 comments on commit 12c89da

Please sign in to comment.