fix: use fmp provider for price_target endpoint
Some checks reported errors
continuous-integration/drone/push Build was killed

yfinance is not supported by obb.equity.estimates.price_target,
which only accepts benzinga or fmp.
This commit is contained in:
Yaojia Wang
2026-03-19 00:13:07 +01:00
parent d46e8685d7
commit e797f8929d

View File

@@ -106,7 +106,7 @@ async def get_financials(symbol: str) -> dict:
async def get_price_target(symbol: str) -> float | None: async def get_price_target(symbol: str) -> float | None:
try: try:
result = await asyncio.to_thread( result = await asyncio.to_thread(
obb.equity.estimates.price_target, symbol, provider=PROVIDER obb.equity.estimates.price_target, symbol, provider="fmp"
) )
items = _to_dicts(result) items = _to_dicts(result)
if items: if items: