Path: blob/master/ invest-robot-contest_invest-bot-main/configuration/settings.py
5925 views
from dataclasses import dataclass, field12__all__ = ("StrategySettings", "AccountSettings", "ShareSettings", "TradingSettings", "BlogSettings")345@dataclass(eq=False, repr=True)6class StrategySettings:7name: str = ""8figi: str = ""9ticker: str = ""10max_lots_per_order: int = 111# All internal strategy settings are represented as dict. A strategy class have to parse it himself.12# Here, we avoid any strong dependencies and obligations13settings: dict = field(default_factory=dict)14lot_size: int = 115short_enabled_flag: bool = True161718@dataclass(eq=False, repr=True)19class AccountSettings:20min_liquid_portfolio: int = 1000021min_rub_on_account: int = 5000222324@dataclass(eq=False, repr=True)25class ShareSettings:26ticker: str = ""27lot: int = 128short_enabled_flag: bool = False29otc_flag: bool = False30buy_available_flag: bool = False31sell_available_flag: bool = False32api_trade_available_flag: bool = False333435@dataclass(eq=False, repr=True)36class TradingSettings:37delay_start_after_open: int = 1038stop_trade_before_close: int = 30039stop_signals_before_close: int = 60404142@dataclass(eq=False, repr=True)43class BlogSettings:44blog_status: bool45bot_token: str46chat_id: str474849