在 `trades.py` 中为获取所有有记录的交易对添加了限制条数的逻辑,避免全表加载。`models.py` 中调整了查询逻辑,未传递 limit 时使用默认上限以防内存暴增。`binance_client.py` 中为交易对信息缓存添加了最大大小限制,确保内存使用合理。`position_manager.py` 和 `risk_manager.py` 中的交易记录查询也进行了条数限制,提升了系统的稳定性与性能。此更新有助于优化内存管理与查询效率。 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| account.py | ||
| accounts.py | ||
| admin.py | ||
| auth.py | ||
| config.py | ||
| dashboard.py | ||
| public.py | ||
| recommendations.py | ||
| stats.py | ||
| system.py | ||
| trades.py | ||