"total": decimal.Decimal(summary["totalValue"]),
}
+ def fetch_nth_order_book(self, symbol, action, number):
+ book = self.fetch_order_book(symbol, limit=number)
+ return decimal.Decimal(book[action + "s"][-1][0])
+
def nonce(self):
"""
Wrapped to allow nonce with other libraries