aboutsummaryrefslogtreecommitdiff
path: root/ccxt_wrapper.py
diff options
context:
space:
mode:
Diffstat (limited to 'ccxt_wrapper.py')
-rw-r--r--ccxt_wrapper.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ccxt_wrapper.py b/ccxt_wrapper.py
index c4aa94d..aaccc61 100644
--- a/ccxt_wrapper.py
+++ b/ccxt_wrapper.py
@@ -299,6 +299,10 @@ class poloniexE(poloniex):
299 "total": decimal.Decimal(summary["totalValue"]), 299 "total": decimal.Decimal(summary["totalValue"]),
300 } 300 }
301 301
302 def fetch_nth_order_book(self, symbol, action, number):
303 book = self.fetch_order_book(symbol, limit=number)
304 return decimal.Decimal(book[action + "s"][-1][0])
305
302 def nonce(self): 306 def nonce(self):
303 """ 307 """
304 Wrapped to allow nonce with other libraries 308 Wrapped to allow nonce with other libraries