finfree-be/models/Strategy.py

16 lines
307 B
Python

from dataclasses import dataclass
@dataclass
class Strategy():
id: str
enabled: bool
fulfilled: bool
created: str
@classmethod
def get_table_name(cls):
return cls.__name__
@classmethod
def get_route_prefix(cls):
return "/strategies/" + cls.__name__.lower()