1
This commit is contained in:
parent
8154508c82
commit
4c7cd86fb0
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user