merge: integrate backtests with main dataset catalog and sequence migration 0004

This commit is contained in:
yuxuanhui
2026-09-08 10:09:37 +08:00
34 changed files with 3041 additions and 56 deletions
+9
View File
@@ -351,3 +351,12 @@ class WqClient:
async def pnl(self, alpha_id):
return await self.get(f"/alphas/{alpha_id}/recordsets/pnl")
async def catalog_page(self, scope, dataset_id, offset):
"""Read a single scoped page. IDs are query parameters, never upstream paths."""
params = {"instrumentType": scope["instrument_type"], "region": scope["region"],
"universe": scope["universe"], "delay": scope["delay"],
"limit": 50, "offset": offset}
if dataset_id is not None:
params["dataset.id"] = dataset_id
return await self.get("/data-fields" if dataset_id else "/data-sets", params)