https://api.llmquant.com/company/facts
返回值
CompanyFacts 对象。
注册国家(ISO 3166-1 alpha-2)。
代码示例
import requests
headers = {"X-API-KEY": "your_api_key_here"}
url = "https://api.llmquant.com/company/facts?ticker=AAPL"
response = requests.get(url, headers=headers)
facts = response.json().get("facts")
print(facts["name"], "-", facts["sector"])
print(f"市值: ${facts['market_cap']:,.0f}")