Enhance Regex to work for mark candles

This commit is contained in:
Matthias
2021-11-28 14:37:54 +01:00
parent c096c7f5cb
commit 8d70672bee
2 changed files with 11 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ logger = logging.getLogger(__name__)
class IDataHandler(ABC):
_OHLCV_REGEX = r'^([a-zA-Z_]+)\-(\d+\S+)(?=\.)'
_OHLCV_REGEX = r'^([a-zA-Z_]+)\-(\d+\S)\-?([a-zA-Z_]*)?(?=\.)'
def __init__(self, datadir: Path) -> None:
self._datadir = datadir