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

Commit

Permalink
Remove size param on get_stats since there is only one option. That…
Browse files Browse the repository at this point in the history
… option is now hard coded.
  • Loading branch information
shanefontaine committed Dec 29, 2018
1 parent 0e254af commit d75d8f5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ethfinex/public_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def get_books(self, pair, precision, len=None):
return self._send_message(f'/book/{pair}/{precision}', params=params)

# TODO: Add `side` to params. It currently does nothing.
def get_stats(self, symbol, key, size, side, section, sort=None):
def get_stats(self, symbol, key, side, section, sort=None):
"""Various statistics about the requested pair.
TODO: Clearly define params.
Expand All @@ -140,7 +140,6 @@ def get_stats(self, symbol, key, size, side, section, sort=None):
symbol (str): Name of the symbol.
key (str): Allowed values: "funding.size", "credits.size",
"credits.size.sym", "pos.size"
size (str): Available values: '1m'
side (str): Available values: "short", "long"
section (str): Available values: "last", "hist"
sort (Optional[int]): Either 0 or 1. If = 1 it sorts results
Expand All @@ -163,7 +162,7 @@ def get_stats(self, symbol, key, size, side, section, sort=None):
if sort:
params['sort'] = sort

return self._send_message(f'/stats1/{key}:{size}:{symbol}/{section}',
return self._send_message(f'/stats1/{key}:1m:{symbol}/{section}',
params=params)

def get_candles(self, symbol, time_frame, section,
Expand Down

0 comments on commit d75d8f5

Please sign in to comment.