This commit is contained in:
lz_db
2025-12-04 22:03:02 +08:00
parent a7152f58ea
commit 878901826c
8 changed files with 604 additions and 191 deletions

View File

@@ -1,10 +1,7 @@
from .base_sync import BaseSync
from loguru import logger
from typing import List, Dict, Any, Set
import json
import time
from datetime import datetime, timedelta
from sqlalchemy import text, and_
from typing import List, Dict
from sqlalchemy import text
from models.orm_models import StrategyKX
class AccountSyncBatch(BaseSync):
@@ -185,8 +182,3 @@ class AccountSyncBatch(BaseSync):
logger.error(f"批量查询现有记录失败: {e}")
return existing_records
async def sync(self):
"""兼容旧接口"""
accounts = self.get_accounts_from_redis()
await self.sync_batch(accounts)