feat: add MarkArea type

This commit is contained in:
Matthias
2024-12-28 15:16:33 +01:00
parent 0032f9a960
commit 7272204d58
2 changed files with 13 additions and 0 deletions

View File

@@ -5,4 +5,5 @@ from freqtrade.ft_types.backtest_result_type import (
BacktestResultType,
get_BacktestResultType_default,
)
from freqtrade.ft_types.plot_annotation_type import MarkArea
from freqtrade.ft_types.valid_exchanges_type import ValidExchangesType

View File

@@ -0,0 +1,12 @@
from datetime import datetime
from typing_extensions import NotRequired, TypedDict
class MarkArea(TypedDict):
start: NotRequired[str | datetime]
end: NotRequired[str | datetime]
y_start: NotRequired[float]
y_end: NotRequired[float]
color: NotRequired[str]
label: NotRequired[str]