Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Python SDK 用户数据模块 - 获取用户关注的公司等信息
companies = client.user.followed_companies() for company in companies: print(company["name"], company["symbol"])
symbol
ticker
market
name
chinese_name
english_name
logo
followed_at
{ "symbol": "US:AAPL", "ticker": "AAPL", "market": "US", "name": "Apple Inc.", "chinese_name": "苹果公司", "english_name": "Apple Inc.", "logo": "https://example.com/logos/aapl.png", "followed_at": 1704067200000 }
# 获取关注公司并查询其最新动态 companies = client.user.followed_companies() print(f"共关注 {len(companies)} 家公司") for company in companies[:5]: print(f"- {company['name']} ({company['symbol']})") # 结合时间线使用 timeline = client.timeline.companies(num=10) for item in timeline: print(f"- {item['title']}")