Rename get_order_book to fetch_l2_order_book (aligning to ccxt)

This commit is contained in:
Matthias
2020-05-26 20:27:35 +02:00
parent d09a347853
commit 16cd1f06b2
6 changed files with 24 additions and 23 deletions

View File

@@ -110,12 +110,13 @@ class DataProvider:
def orderbook(self, pair: str, maximum: int) -> Dict[str, List]:
"""
fetch latest orderbook data
Fetch latest l2 orderbook data
Warning: Does a network request - so use with common sense.
:param pair: pair to get the data for
:param maximum: Maximum number of orderbook entries to query
:return: dict including bids/asks with a total of `maximum` entries.
"""
return self._exchange.get_order_book(pair, maximum)
return self._exchange.fetch_l2_order_book(pair, maximum)
@property
def runmode(self) -> RunMode: