fix(agents): ask again for an instrument identity whose lookup failed

- only an answered lookup is cached for the process, so one failed request no longer leaves every later run for that ticker without an identity
This commit is contained in:
Yijia-Xiao
2026-09-29 05:57:18 +00:00
parent 466d33ab3b
commit b89909724a
4 changed files with 21 additions and 7 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ def test_identity_lookup_normalizes_symbol(monkeypatch):
return {"longName": "Gold Futures", "quoteType": "FUTURE"}
monkeypatch.setattr(yahoo_market.yf, "Ticker", FakeTicker)
au.resolve_instrument_identity.cache_clear()
au._identity.cache_clear()
identity = au.resolve_instrument_identity("XAUUSD")