Skip to main content

接口

GET
string
https://api.llmquant.com/events/insider-trades

参数

必填

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

选填

limit
integer
default:20
返回记录的最大数量。
date_gte
date
交易日期大于等于该日期(YYYY-MM-DD)。
date_lte
date
交易日期小于等于该日期(YYYY-MM-DD)。
transaction_type
string
按交易类型过滤:buy(买入)、sell(卖出)、grant(授予)、exercise(行权)。

返回值

insider_trades
array
InsiderTrade 对象数组,按交易日期倒序排列。

代码示例

import requests

headers = {"X-API-KEY": "your_api_key_here"}

url = "https://api.llmquant.com/events/insider-trades?ticker=AAPL&transaction_type=sell&limit=10"
response = requests.get(url, headers=headers)
trades = response.json().get("insider_trades")

for t in trades:
    print(f"{t['filer_name']} ({t['filer_title']}): 卖出 {t['shares']:,} 股,价格 ${t['price']}")