跳转到主要内容
POST
聪明钱追踪
选择 action 并填写该 action 支持的筛选。SEC API 的申报日期采用美东时间。基金报告期为 13F 季末。市场情绪覆盖全美市场,同时报告数据覆盖区间。历史股价使用 stock_research。交付与请求费用分别见 result_status 和 request_charge。

请求头

idempotency-key
string
必填

每次独立查询都生成新的唯一值(建议使用随机 UUID),即使参数相同且发生在同一天。仅在恢复同一次预期执行时沿用原键与参数,取回原 Run,不再次扣费。同键更改执行参数返回 409;更换 task_id 或 metadata 不会创建新 Run。旧的不透明键仍可用于恢复。

Minimum string length: 1

请求体

application/json
action
enum<string>
必填
可用选项:
insider_trades,
insider_sentiment,
planned_insider_sales,
institutional_holders,
fund_holdings,
activist_stakes,
etf_holdings
provider
enum<string> | null

默认为 auto,按 Glasser 偏好顺序选择第一家符合条件的数据提供商。指定的数据提供商必须支持请求且获得当前 API Key 的允许,不会切换到其他家。可用值见下方。

可用选项:
auto,
secapi,
financialdatasets,
secform4
ticker
string | null
Pattern: ^[A-Za-z0-9.-]{1,12}$
cik
string | null
Pattern: ^\d{1,10}$
name
string | null
Required string length: 1 - 200
start_date
string | null
Pattern: ^\d{4}-\d{2}-\d{2}$
end_date
string | null
Pattern: ^\d{4}-\d{2}-\d{2}$
report_period
string | null
Pattern: ^\d{4}-\d{2}-\d{2}$
form_type
enum<string> | null
可用选项:
3,
3/A,
4,
4/A,
5,
5/A
mode
enum<string> | null
可用选项:
holdings,
investors,
activist,
beneficial,
passive
holding
string | null
Pattern: ^[A-Za-z0-9.-]{1,12}$
as_of
string | null
Pattern: ^\d{4}-\d{2}-\d{2}$
history
boolean | null
limit
integer | null
必填范围: 1 <= x <= 100
offset
integer | null
必填范围: 0 <= x <= 100000
cursor
string | null
Required string length: 1 - 2000
max_charge_usd
string | null

精确的美元十进制字符串,小数位数为 2–6,采用唯一规范格式。求和时使用十进制运算或乘以 10^6 转为整数,不使用浮点数。

Pattern: ^(0|[1-9]\d*)\.(\d{2}|\d{2}\d{0,3}[1-9])$
task_id
string | null

将相关 Run,包括自动切换产生的 Run,归入同一个 Task。复用稳定字符串,并通过 Task 筛选 Run 列表。

metadata

可选追踪字段,随 Run 返回,也可用于筛选。不会发送给数据提供商,也不影响路由、价格或幂等。

  • 最多 20 个键:小写字母、数字和下划线,以字母开头,最长 40 个字符。
  • 值:长度为 1–500 的字符串。
  • user_id:终端用户的不透明 ID,不得使用邮箱或姓名。

无效条目整体丢弃,不截断。请求继续执行,Run 返回实际保存的字段。

响应

成功

已归一的申报与所有权证据。缺失字段为 null。数量和金额沿用报告口径。源 Run 保留原生数据。读取结果不会创建 Run。

id
string
必填
run_url
string
必填

在控制台打开 Run,需要工作空间成员权限。

provider
string
必填
Pattern: ^[a-z0-9][a-z0-9-]*$
endpoint
string
必填
Pattern: ^\/.+$
endpoint_version
integer
必填
status
enum<string>
必填

QUEUED 或 RUNNING 表示仍在执行。COMPLETED 表示已有数据提供商响应,包括非 2xx 响应。FAILED 请读取 failure。STOPPED 表示分派前停止。charge_usd 与状态分别检查。

可用选项:
QUEUED,
RUNNING,
COMPLETED,
FAILED,
STOPPED
failure
object | null
必填

Run 失败原因,仅在 status 为 FAILED 时非 null。

input
object
必填
output
object | null
必填
provider_response
object | null
必填

仅在 status 为 COMPLETED 时非 null。

  • 2xx 响应:output 为任意结构的数据提供商原生 JSON;正文为空时为 null。
  • 非 2xx 响应:error 包含数据提供商错误正文,output 为 null。

两种正文均会移除敏感字段。

charge_usd
string | null
必填

所列 Run 的历史费用总和,包括重放或读取的 Run。所有 Run 结算前为 null。这不是当前请求的新增支出;request_charge 单独报告新增费用。失败也可能收费。

Pattern: ^(0|[1-9]\d*)\.(\d{2}|\d{2}\d{0,3}[1-9])$
charge_basis
object | null
必填

单个 Run 的计费依据;多个 Run 汇总时为 null。各项费用请查看 runs[].charge_basis。

stoppable
boolean
必填

当前是否可接受停止请求。不保证能在分派前停止 Run。

stop_requested_at
string<date-time> | null
必填

请求停止的时间。如果已开始分派,Run 仍可能继续。

created_at
string<date-time>
必填

ISO 8601 UTC 时间戳。

started_at
string<date-time> | null
必填

ISO 8601 UTC 时间戳。

completed_at
string<date-time> | null
必填

ISO 8601 UTC 时间戳。

task_id
string | null
必填
metadata
object
必填

已保存的追踪字段,可用于筛选 Run,不发送给数据提供商,不影响路由、价格或幂等。

  • 最多 20 个键:小写字母、数字和下划线,以字母开头,最长 40 个字符。
  • 值:长度为 1–500 的字符串。
  • user_id:终端用户的不透明 ID,不得使用邮箱或姓名。
action
enum<string>
必填
可用选项:
insider_trades,
insider_sentiment,
planned_insider_sales,
institutional_holders,
fund_holdings,
activist_stakes,
etf_holdings
result_status
enum<string>
必填
可用选项:
success,
no_result,
error,
pending
error
object | null
必填
runs
object[]
必填
result_url
string
必填

通过认证读取规范化结果和总费用的只读 URL 路径,配合 API 服务地址使用。不创建 Run,也不恢复切换。GET /v1/runs/:id 仍返回原生单个 Run。

response_file
object

内容过大时,通过文件提供完整的归一 JSON。源 Run 保留其原生输出。

review_invitation
object

每个 Run 至多出现一次,只在部分已完成 Run 的首次交付中出现。用完本次结果后,按 instruction 提交评价,然后继续任务。可选;不影响 Run 及其费用。

request_charge
object

当前请求的受理与费用证据。在同一件用户工作中保存 created_run_ids,每个已结算 Run 只计一次费用。更换 task_id 不会把幂等重放变成新 Run。读取结果的费用为零,受理列表为空。