Create Filtered Order Stream
Provisions a new custom real-time stream subject to account quotas (max_streams, max_naked_streams, max_filter_addrs, max_filter_tags, max_filter_series)
POST/streams
请求参数
该接口所需的请求头与参数规范。
请求头
| 请求头 | 类型 | 必填 | 说明 |
|---|---|---|---|
| X-PolyEdge-Key | string | 必填 | PolyEdge API Key for client authentication and rate-limiting |
| Content-Type | string | 必填 | Must be set to application/json |
请求体 (application/json)
Request Payload| 字段 | 类型 | 说明 |
|---|---|---|
addresses | string[] | - |
name | string | - |
series | string[] | - |
tags | string[] | - |
响应 (201 Created)
成功响应载荷的字段定义。
201 响应示例
json
{
"active_sessions": 0,
"addresses": [],
"created_at": "2026-09-29T09:01:46.05491822Z",
"enabled": true,
"id": "9bae9005-9ef1-4f17-8658-36ea54536836",
"name": "Temporary Sample Stream",
"series": [
"btc-up-or-down-5m"
],
"tags": [],
"updated_at": "2026-09-29T09:01:46.05491822Z"
}响应体字段
| 字段 | 类型 | 说明 |
|---|---|---|
active_sessions | integer | - |
addresses | string[] | - |
created_at | string | - |
enabled | boolean | - |
id | string | - |
name | string | - |
series | string[] | - |
tags | string[] | - |
updated_at | string | - |
cURL 示例
在终端中直接复制并运行此命令测试该接口。
cURL: POST /streams
bash
curl -X POST "https://stream.polyedge.dev/streams" \
-H "Content-Type: application/json" \
-H "X-PolyEdge-Key: Your-PolyEdge-ApiKey" \
-d '{
"addresses": [
"0x34dd4a4b70eaf79a17878f7938263c801d4dfd83"
],
"name": "Whale Smart Money Tracker",
"series": [
"epl"
],
"tags": [
"sports",
"crypto"
]
}'