2
0
forked from kodorvan/stcs

The entire database has been changed to PostgresSQL. The entire code has been updated.

This commit is contained in:
algizn97
2025-10-01 15:23:21 +05:00
parent e5a3de4ed8
commit 97662081ce
49 changed files with 7916 additions and 0 deletions

View File

View File

@@ -0,0 +1,51 @@
from aiogram.fsm.state import State, StatesGroup
class AddBybitApiState(StatesGroup):
"""States for adding Bybit API keys."""
api_key_state = State()
api_secret_state = State()
class AdditionalSettingsState(StatesGroup):
"""States for additional settings."""
leverage_state = State()
leverage_to_buy_state = State()
leverage_to_sell_state = State()
quantity_state = State()
martingale_factor_state = State()
max_bets_in_series_state = State()
limit_price_state = State()
trigger_price_state = State()
class RiskManagementState(StatesGroup):
"""States for risk management."""
take_profit_percent_state = State()
stop_loss_percent_state = State()
max_risk_percent_state = State()
commission_fee_state = State()
class ConditionalSettingsState(StatesGroup):
"""States for conditional settings."""
start_timer_state = State()
stop_timer_state = State()
class ChangingTheSymbolState(StatesGroup):
"""States for changing the symbol."""
symbol_state = State()
class SetTradingStopState(StatesGroup):
"""States for setting a trading stop."""
symbol_state = State()
take_profit_state = State()
stop_loss_state = State()