mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Fix typehints
This commit is contained in:
parent
915160f21f
commit
9c08cdc81d
|
@ -55,7 +55,7 @@ class FreqtradeBot(object):
|
|||
self.persistence = None
|
||||
self.exchange = Exchange(self.config)
|
||||
self._init_modules()
|
||||
self._klines = {}
|
||||
self._klines: Dict[str, List[Dict]] = {}
|
||||
|
||||
def _init_modules(self) -> None:
|
||||
"""
|
||||
|
|
|
@ -6,7 +6,7 @@ import logging
|
|||
from abc import ABC, abstractmethod
|
||||
from datetime import datetime
|
||||
from enum import Enum
|
||||
from typing import Dict, List, NamedTuple, Tuple
|
||||
from typing import Dict, List, NamedTuple, Optional, Tuple
|
||||
import warnings
|
||||
|
||||
import arrow
|
||||
|
@ -118,7 +118,7 @@ class IStrategy(ABC):
|
|||
dataframe = self.advise_sell(dataframe, metadata)
|
||||
return dataframe
|
||||
|
||||
def get_signal(self, pair: str, interval: str, ticker_hist: List[Dict]) -> Tuple[bool, bool]:
|
||||
def get_signal(self, pair: str, interval: str, ticker_hist: Optional[List[Dict]]) -> Tuple[bool, bool]:
|
||||
"""
|
||||
Calculates current signal based several technical analysis indicators
|
||||
:param pair: pair in format ANT/BTC
|
||||
|
|
Loading…
Reference in New Issue
Block a user