Dummy-type query objects

This commit is contained in:
Matthias 2023-02-14 09:56:42 +00:00
parent a553a9923a
commit b62830031f
2 changed files with 7 additions and 0 deletions

View File

@ -13,6 +13,8 @@ class PairLock(_DECL_BASE):
Pair Locks database model.
"""
__tablename__ = 'pairlocks'
# TODO: Properly type query.
query: Any
id = Column(Integer, primary_key=True)

View File

@ -36,6 +36,8 @@ class Order(_DECL_BASE):
Mirrors CCXT Order structure
"""
__tablename__ = 'orders'
# TODO: Properly type query.
query: Any
# Uniqueness should be ensured over pair, order_id
# its likely that order_id is unique per Pair on some exchanges.
__table_args__ = (UniqueConstraint('ft_pair', 'order_id', name="_order_pair_order_id"),)
@ -1167,6 +1169,9 @@ class Trade(_DECL_BASE, LocalTrade):
Note: Fields must be aligned with LocalTrade class
"""
__tablename__ = 'trades'
# TODO: Type query type throughout.
query: Any
_session: Any = None
use_db: bool = True