重置项目

This commit is contained in:
2026-07-04 15:59:20 +08:00
parent 374e587f2d
commit 648a8b7f1c
224 changed files with 19700 additions and 9547 deletions
@@ -0,0 +1,15 @@
"""Provider registry."""
from __future__ import annotations
from app.data_providers.tickflow_provider import TickFlowProvider
_PROVIDERS = {
"tickflow": TickFlowProvider,
}
def get_provider(name: str = "tickflow"):
provider_cls = _PROVIDERS.get((name or "tickflow").lower())
if provider_cls is None:
raise ValueError(f"Unsupported data provider: {name}")
return provider_cls()