book order preparation for strategy use

This commit is contained in:
Nullart
2018-06-27 08:24:15 +08:00
parent 9813c3c039
commit 66ed99cf3c
3 changed files with 32 additions and 5 deletions

View File

@@ -254,7 +254,7 @@ def get_order_book(pair: str, limit: Optional[int] = 100) -> dict:
limit = limitx
break
return _API.fetch_order_book(pair, limit)
return _API.fetch_l2_order_book(pair, limit)
except ccxt.NotSupported as e:
raise OperationalException(
f'Exchange {_API.name} does not support fetching order book.'