From 0e254afbec09f7c1c8f0692add114475d648ec23 Mon Sep 17 00:00:00 2001 From: Shane Fontaine Date: Fri, 28 Dec 2018 21:27:33 -0800 Subject: [PATCH] Add side param notes --- ethfinex/public_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ethfinex/public_client.py b/ethfinex/public_client.py index b3cb602..b96129f 100644 --- a/ethfinex/public_client.py +++ b/ethfinex/public_client.py @@ -123,7 +123,7 @@ def get_books(self, pair, precision, len=None): return self._send_message(f'/book/{pair}/{precision}', params=params) - # TODO: Include 'side' for the 'pos.size' calls. + # TODO: Add `side` to params. It currently does nothing. def get_stats(self, symbol, key, size, side, section, sort=None): """Various statistics about the requested pair. @@ -141,6 +141,7 @@ def get_stats(self, symbol, key, size, side, section, sort=None): 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 returned with old to new