diff options
| author | Павел Жуков <33721692+LeaveMyYard@users.noreply.github.com> | 2023-05-15 13:04:12 +0300 |
|---|---|---|
| committer | Павел Жуков <33721692+LeaveMyYard@users.noreply.github.com> | 2023-05-15 13:04:12 +0300 |
| commit | ea0eaa9538f05e9e944fe00c5431c0e4375b8d16 (patch) | |
| tree | 126925a3297bf5006003e16cbc7b8929871f754c /examples | |
| parent | a43a1a895aea3d69ef817d30e1008f15904abba4 (diff) | |
| parent | 01e312f4448b3655a3f1d534f6891395f33a706e (diff) | |
Merge branch 'main' into improve-error-handling
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/custom_strategy.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/custom_strategy.py b/examples/custom_strategy.py index 5917dc4..5b38f68 100644 --- a/examples/custom_strategy.py +++ b/examples/custom_strategy.py @@ -1,7 +1,5 @@ # This is an example on how to create your own custom strategy -from decimal import Decimal - import pydantic as pd import robusta_krr @@ -11,8 +9,8 @@ from robusta_krr.api.strategies import BaseStrategy, StrategySettings # Providing description to the settings will make it available in the CLI help class CustomStrategySettings(StrategySettings): - param_1: Decimal = pd.Field(99, gt=0, description="First example parameter") - param_2: Decimal = pd.Field(105_000, gt=0, description="Second example parameter") + param_1: float = pd.Field(99, gt=0, description="First example parameter") + param_2: float = pd.Field(105_000, gt=0, description="Second example parameter") class CustomStrategy(BaseStrategy[CustomStrategySettings]): |
