mirror of
https://github.com/TauricResearch/TradingAgents.git
synced 2026-11-24 01:59:58 +02:00
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:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user