From d75d8f53a04f337ebcec029a535ddf5664f8b3c8 Mon Sep 17 00:00:00 2001 From: Shane Fontaine Date: Fri, 28 Dec 2018 21:33:45 -0800 Subject: [PATCH] Remove size param on `get_stats` since there is only one option. That option is now hard coded. --- ethfinex/public_client.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ethfinex/public_client.py b/ethfinex/public_client.py index b96129f..4a93c70 100644 --- a/ethfinex/public_client.py +++ b/ethfinex/public_client.py @@ -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. @@ -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 @@ -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,