Cleanup some code

after deepcode.ai suggestions
This commit is contained in:
Matthias
2019-07-14 20:05:28 +02:00
parent f0206a90b1
commit 4238ee090d
3 changed files with 9 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ from freqtrade.state import RunMode
logger = logging.getLogger(__name__)
class DataProvider(object):
class DataProvider():
def __init__(self, config: dict, exchange: Exchange) -> None:
self._config = config
@@ -81,11 +81,14 @@ class DataProvider(object):
# TODO: Implement me
pass
def orderbook(self, pair: str, max: int):
def orderbook(self, pair: str, maximum: int):
"""
return latest orderbook data
: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, max)
return self._exchange.get_order_book(pair, maximum)
@property
def runmode(self) -> RunMode: