get_price_trend
按产品名查询近实时价格日趋势(按日+规格聚合),时效优先。价格明细用 get_compound_prices_live;历史明细用 get_compound_prices。
英文描述
Near-realtime daily price trend by product (grouped by date and specifications). Use get_compound_prices_live for details; get_compound_prices for historical series.
文档更新:2026-08-11T08:16:36+08:00
请求参数
| 参数名 | 参数说明 | 数据类型 | 样例数据 |
|---|---|---|---|
product_name | 产品名称关键词,必填 | string | 原油 |
limit | 时序点数,默认 90 | integer | 90 |
响应参数
| 参数名 | 参数说明 | 数据类型 | 样例数据 |
|---|---|---|---|
code | 业务状态码,0 表示成功 | integer | 0 |
message | 状态说明 | string | ok |
data | 业务载荷数组 | array | [] |
meta.biz_dt | 业务日(可选) | string | 2026-07-05 |
meta.source | 数据来源标识 | string | compound_price_live |
data[].product_name | 产品名 | string | 原油 |
data[].price_date | 日期 | string | 2026-06-01 |
data[].specifications | 规格 | string | WTI |
data[].price_avg | 均价 | string | 6480 |
响应状态说明
| 状态 | 说明 |
|---|---|
success | 调用成功,返回 code=0 与业务 data |
failed | 参数非法、主键不存在或后端查询异常 |
denied | API Key 无效、已吊销、权限不足(Bearer / X-API-Key;如 L3 Tool 用 L2 Key) |
请求示例
{
"product_name": "原油",
"limit": 90
}响应示例
{
"code": 0,
"message": "ok",
"data": [
{
"product_name": "原油",
"price_date": "2026-06-01",
"specifications": "WTI",
"price_avg": 6480,
"price_source": "live"
}
],
"meta": {
"biz_dt": "2026-07-05",
"source": "compound_price_live"
}
}