You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Account(Base):
...
@hybrid_property
def holdings_value(self):
res = Counter()
for position in self.positions:
if position.is_open:
latest_quote = object_session(position).query(SecurityQuote).order_by('date desc').limit(1).first()
I am not an expert in Alchemy. How connected models Position and SecurityQuote? In which field linked these models?
The text was updated successfully, but these errors were encountered:
I am not an expert in Alchemy. How connected models Position and SecurityQuote? In which field linked these models?
The text was updated successfully, but these errors were encountered: