Skip to main content

接口

GET
string
https://api.llmquant.com/company/facts

参数

必填

ticker
string
required
股票代码(如 AAPLMSFT)。

返回值

facts
object
CompanyFacts 对象。

代码示例

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}")