mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-12 19:23:55 +00:00
use OHLCVResponse in ws
This commit is contained in:
parent
0b620817a2
commit
f90574abee
|
@ -4,13 +4,14 @@ import logging
|
||||||
import time
|
import time
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
from typing import Dict, List, Optional, Set, Tuple
|
from typing import Dict, Set
|
||||||
|
|
||||||
import ccxt
|
import ccxt
|
||||||
|
|
||||||
from freqtrade.constants import Config, PairWithTimeframe
|
from freqtrade.constants import Config, PairWithTimeframe
|
||||||
from freqtrade.enums.candletype import CandleType
|
from freqtrade.enums.candletype import CandleType
|
||||||
from freqtrade.exchange.exchange import timeframe_to_seconds
|
from freqtrade.exchange.exchange import timeframe_to_seconds
|
||||||
|
from freqtrade.exchange.types import OHLCVResponse
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
@ -101,7 +102,7 @@ class ExchangeWS():
|
||||||
pair: str,
|
pair: str,
|
||||||
timeframe: str,
|
timeframe: str,
|
||||||
candle_type: CandleType
|
candle_type: CandleType
|
||||||
) -> Tuple[str, str, CandleType, List]:
|
) -> OHLCVResponse:
|
||||||
"""
|
"""
|
||||||
Returns cached klines from ccxt's "watch" cache.
|
Returns cached klines from ccxt's "watch" cache.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user