forked from kodorvan/stcs
The entire database has been changed to PostgresSQL. The entire code has been updated.
This commit is contained in:
51
app/telegram/states/states.py
Normal file
51
app/telegram/states/states.py
Normal 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()
|
Reference in New Issue
Block a user