mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-02-08 23:30:29 +00:00
feat: add MarkArea type
This commit is contained in:
@@ -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
|
||||
|
||||
12
freqtrade/ft_types/plot_annotation_type.py
Normal file
12
freqtrade/ft_types/plot_annotation_type.py
Normal 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]
|
||||
Reference in New Issue
Block a user