52 lines
1.2 KiB
Python
52 lines
1.2 KiB
Python
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()
|