feat: EnhancedTicker.info property — sector/industry/country 지원

curl_cffi 커스텀 세션으로 yfinance .info를 호출하면 quoteSummary
일부 엔드포인트가 응답 누락되어 sector/industry/country 필드가 빠짐.
명시적 @property info를 추가하여 vanilla yf.Ticker(symbol).info를
호출 (공유 adaptive rate limiter는 그대로 사용), 모든 필드 반환.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main
I Luk Kim 4 months ago
parent 343aac090d
commit 674b7e45c8

@ -591,6 +591,20 @@ class EnhancedTicker:
return getattr(self.yf_ticker, name) return getattr(self.yf_ticker, name)
return self.enhanced_yf._retry_with_backoff(_get_property) return self.enhanced_yf._retry_with_backoff(_get_property)
@property
def info(self) -> dict:
"""Return full company info dict including sector, industry, country, market_cap.
yfinance_plus curl_cffi sessions can cause partial quoteSummary responses
that omit fundamental fields. This property uses a plain yfinance Ticker
(no custom session) so all Yahoo Finance endpoints are reached, while still
going through the shared adaptive rate limiter.
"""
def _get_info():
return yf.Ticker(self.symbol).info
return self.enhanced_yf._retry_with_backoff(_get_info)
# Additional utility methods # Additional utility methods
def get_cache_info(self) -> Dict[str, Any]: def get_cache_info(self) -> Dict[str, Any]:
"""Get cache information for this ticker""" """Get cache information for this ticker"""

Loading…
Cancel
Save