信号服务
获取实时交易信号数据
GET
/api/signals获取信号列表,支持品种和日期筛选
请求参数
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| symbol | string[] | 可选 | 交易品种筛选,如 EURUSD |
| startDate | datetime | 可选 | 开始日期,ISO 8601 格式 |
Request
GET https://api.aryenquant.com/api/signals?symbol=xauusd&startDate=2026-01-01T00:00:00Z
Headers:
X-API-Key: your_api_keyResponse
{
"items": [
{
"id": 1,
"signalId": "4F3RAZ",
"symbol": "xauusd",
"timeframe": "h1",
"direction": "bull",
"confirmedAt": "2026-01-07T08:00:00Z", // UTC 时间,信号开始
"endedAt": "2026-01-07T12:30:00Z", // UTC 时间,信号结束(null 表示进行中)
"createdAt": "2026-01-07T08:00:01Z" // UTC 时间
}
]
}响应字段说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| id | number | 系统内部唯一标识 |
| signalId | string | 信号ID,6位字符,用于追踪信号 |
| symbol | string | 交易品种,如 XAUUSD |
| timeframe | string | 时间周期,如 M1、M5、H1、D1 |
| direction | string | 交易方向,BUY 或 SELL |
| confirmedAt | datetime | 信号确认时间(UTC),信号开始时间 |
| endedAt | datetime? | 信号结束时间(UTC),null 表示信号进行中 |
| createdAt | datetime | 记录创建时间(UTC) |
关于持续时间
持续时间需要客户端根据 endedAt 是否为空来计算:
// 信号进行中if (endedAt == null) duration = now() - confirmedAt// 信号已结束if (endedAt != null) duration = endedAt - confirmedAtGET
/api/signals/filters获取可用的筛选选项
Request
GET https://api.aryenquant.com/api/signals/filters
Headers:
X-API-Key: your_api_keyResponse
{
"symbols": ["btcusd", "xauusd", ...],
"directions": ["bull", "bear"],
"timeframes": ["m1", "m5", "m15", "m30", "h1", "h4", "d1"]
}