From 717baa6b12e09b5103c05737c11b2f56dcf651ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B0=D0=B2=D0=B5=D0=BB=20=D0=96=D1=83=D0=BA=D0=BE?= =?UTF-8?q?=D0=B2?= <33721692+LeaveMyYard@users.noreply.github.com> Date: Thu, 11 May 2023 16:30:42 +0300 Subject: Replace decimals on numpy arrays, keep timestapms --- examples/custom_strategy.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'examples') 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]): -- cgit v1.2.3