Signals API
Danh sách tín hiệu
GET /api/v1/signalsQuery parameters:
| Param | Type | Mô tả |
|---|---|---|
| symbol | string | Lọc theo symbol (BTCUSDT) |
| direction | string | long, short, watch |
| status | string | pending, active, completed, canceled |
| source | string | technical, ai, manual |
| strategy | string | Lọc theo chiến lược |
| from | ISO date | Từ ngày |
| to | ISO date | Đến ngày |
| page | number | Trang (mặc định 1) |
| pageSize | number | Số lượng (mặc định 50) |
| sort | string | Sắp xếp (createdAt:desc) |
Chi tiết tín hiệu
GET /api/v1/signals/:idTạo tín hiệu (Manual)
POST /api/v1/signals{
"symbol": "BTCUSDT",
"direction": "long",
"entryPrice": 50000,
"stopLoss": 49000,
"takeProfit": 52000,
"timeframe": "1h",
"strategy": "MyStrategy",
"confidence": 75,
"riskPercent": 2
}Top tín hiệu
GET /api/v1/signals/topTrả về tín hiệu có confidence cao nhất theo từng symbol.