From f90574abee9f1f5a2f19f2e0396c1568337dbfa4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 5 Jan 2023 11:53:37 +0100 Subject: [PATCH] use OHLCVResponse in ws --- freqtrade/exchange/exchange_ws.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/freqtrade/exchange/exchange_ws.py b/freqtrade/exchange/exchange_ws.py index 175ebdba7..e68c2e3c4 100644 --- a/freqtrade/exchange/exchange_ws.py +++ b/freqtrade/exchange/exchange_ws.py @@ -4,13 +4,14 @@ import logging import time from datetime import datetime from threading import Thread -from typing import Dict, List, Optional, Set, Tuple +from typing import Dict, Set import ccxt from freqtrade.constants import Config, PairWithTimeframe from freqtrade.enums.candletype import CandleType from freqtrade.exchange.exchange import timeframe_to_seconds +from freqtrade.exchange.types import OHLCVResponse logger = logging.getLogger(__name__) @@ -101,7 +102,7 @@ class ExchangeWS(): pair: str, timeframe: str, candle_type: CandleType - ) -> Tuple[str, str, CandleType, List]: + ) -> OHLCVResponse: """ Returns cached klines from ccxt's "watch" cache. """