This commit is contained in:
algizn97
2025-10-03 14:19:18 +05:00
parent 4adbd70948
commit 1508629727
15 changed files with 412 additions and 210 deletions

View File

@@ -166,7 +166,6 @@ class UserDeals(Base):
switch_side_mode = Column(Boolean, nullable=True)
limit_price = Column(Float, nullable=True)
trigger_price = Column(Float, nullable=True)
fee = Column(Float, nullable=True)
user = relationship("User", back_populates="user_deals")
@@ -185,9 +184,7 @@ class UserAutoTrading(Base):
nullable=False)
symbol = Column(String, nullable=True)
auto_trading = Column(Boolean, nullable=True)
side = Column(String, nullable=True)
fee = Column(Float, nullable=True)
user = relationship("User", back_populates="user_auto_trading")
__table_args__ = (
UniqueConstraint('user_id', 'symbol', name='uq_user_auto_trading_symbol'),
)
user = relationship("User", back_populates="user_auto_trading")