fix(HEL-494): 切断网站生产装配外源直连,iFinD 与实时观察改走中枢

生产 gateway 不再实例化 iFinD、东财图和免费实时聚合器;问财与竞价快照作为中枢内部数据源。全站阻断外源测试覆盖日K、报价、图表、问财和竞价快照。

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
总工
2026-09-08 22:41:51 +08:00
co-authored by Cursor multica-agent
parent 0b8419abca
commit 100752f43c
24 changed files with 1275 additions and 110 deletions
+5 -2
View File
@@ -19,7 +19,7 @@ class LayoutTests(unittest.TestCase):
def test_reserved_adapters_present(self) -> None:
from datahub.adapters import RESERVED
for name in ("ths", "xgb", "akshare", "ifind"):
for name in ("ths", "xgb", "akshare"):
self.assertIn(name, RESERVED)
probe = RESERVED[name].probe()
self.assertEqual(probe["state"], "reserved")
@@ -27,9 +27,12 @@ class LayoutTests(unittest.TestCase):
for name in ("eastmoney", "tencent"):
self.assertIn(name, RESERVED)
probe = RESERVED[name].probe()
# Live free adapters: probe may be ok/error/empty depending on network.
self.assertIn(probe["state"], {"ok", "empty", "error"})
self.assertTrue(probe["configured"])
self.assertIn("ifind", RESERVED)
ifind = RESERVED["ifind"].probe()
self.assertIn(ifind["state"], {"unconfigured", "ok", "empty", "error"})
self.assertEqual(ifind["configured"], ifind["state"] != "unconfigured")
if __name__ == "__main__":