mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-11 02:33:55 +00:00
Merge pull request #9656 from freqtrade/dependabot/pip/develop/sqlalchemy-2.0.25
Bump sqlalchemy from 2.0.23 to 2.0.25
This commit is contained in:
commit
3741cbf3a9
|
@ -19,7 +19,7 @@ repos:
|
|||
- types-requests==2.31.0.20240106
|
||||
- types-tabulate==0.9.0.20240106
|
||||
- types-python-dateutil==2.8.19.20240106
|
||||
- SQLAlchemy==2.0.23
|
||||
- SQLAlchemy==2.0.25
|
||||
# stages: [push]
|
||||
|
||||
- repo: https://github.com/pycqa/isort
|
||||
|
|
|
@ -1637,7 +1637,7 @@ class Trade(ModelBase, LocalTrade):
|
|||
Retrieves total realized profit
|
||||
"""
|
||||
if Trade.use_db:
|
||||
total_profit: float = Trade.session.execute(
|
||||
total_profit = Trade.session.execute(
|
||||
select(func.sum(Trade.close_profit_abs)).filter(Trade.is_open.is_(False))
|
||||
).scalar_one()
|
||||
else:
|
||||
|
@ -1845,4 +1845,4 @@ class Trade(ModelBase, LocalTrade):
|
|||
Order.order_filled_date >= start_date,
|
||||
Order.status == 'closed'
|
||||
)).scalar_one()
|
||||
return trading_volume
|
||||
return trading_volume or 0.0
|
||||
|
|
|
@ -5,7 +5,7 @@ pandas-ta==0.3.14b
|
|||
ccxt==4.2.9
|
||||
cryptography==41.0.7
|
||||
aiohttp==3.9.1
|
||||
SQLAlchemy==2.0.23
|
||||
SQLAlchemy==2.0.25
|
||||
python-telegram-bot==20.7
|
||||
# can't be hard-pinned due to telegram-bot pinning httpx with ~
|
||||
httpx>=0.24.1
|
||||
|
|
Loading…
Reference in New Issue
Block a user