mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Improve typehint for ohlcv endpoint
This commit is contained in:
parent
e8b4bcc65d
commit
f223319909
|
@ -17,7 +17,7 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
|
||||
class ExchangeWS():
|
||||
def __init__(self, config: Config, ccxt_object) -> None:
|
||||
def __init__(self, config: Config, ccxt_object: ccxt.Exchange) -> None:
|
||||
self.config = config
|
||||
self.ccxt_object = ccxt_object
|
||||
self._thread = Thread(name="ccxt_ws", target=self.__start_forever)
|
||||
|
@ -96,7 +96,11 @@ class ExchangeWS():
|
|||
self.cleanup_expired()
|
||||
|
||||
async def get_ohlcv(
|
||||
self, pair: str, timeframe: str, candle_type: CandleType) -> Tuple[str, str, str, List]:
|
||||
self,
|
||||
pair: str,
|
||||
timeframe: str,
|
||||
candle_type: CandleType
|
||||
) -> Tuple[str, str, CandleType, List]:
|
||||
"""
|
||||
Returns cached klines from ccxt's "watch" cache.
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user