บริการสัญญาณ
รับข้อมูลสัญญาณการซื้อขายแบบเรียลไทม์
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 | รหัสสัญญาณ, รหัสติดตาม 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 เป็น null หรือไม่:
// สัญญาณกำลังดำเนินอยู่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"]
}