This commit is contained in:
薇薇安 2026-02-13 08:15:09 +08:00
parent 8154508c82
commit 4c7cd86fb0
2 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ async def backfill_commissions(client, account_id):
logger.warning(f" ⚠️ Error fetching fills for {symbol} (Attempt {attempt+1}/{max_retries}): {e}, retrying...") logger.warning(f" ⚠️ Error fetching fills for {symbol} (Attempt {attempt+1}/{max_retries}): {e}, retrying...")
await asyncio.sleep(2) await asyncio.sleep(2)
if fills is None: if not fills:
continue continue
# Filter for closing trades (approximate logic: matches trade direction) # Filter for closing trades (approximate logic: matches trade direction)

View File

@ -4,7 +4,7 @@ import os
from pathlib import Path from pathlib import Path
# Add backend to path # Add backend to path
sys.path.append('/Users/vivian/work/python/auto_trade_sys/backend') sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'backend'))
try: try:
from database.connection import db from database.connection import db