Calendars
경제 캘린더. investing.com 수집분을 RDS(economic_calendar) 에 적재 → DB 조회.
GET /api/calendars/economic
| 파라미터 | 위치 | 필수 | 형식/기본 |
|---|---|---|---|
from | query | ✅ | YYYY-MM-DD |
to | query | ✅ | YYYY-MM-DD |
minStars | query | - | 정수, 기본 1 (중요도 필터) |
from/to 형식이 아니면 400 BAD_REQUEST.
응답 — 이벤트 평탄 배열 (scheduledAt 은 UTC epoch ms)
{
"success": true, "code": "OK",
"data": [
{
"id": 1,
"eventId": 1738,
"title": "연방준비제도(FED) 의장 Powell 연설",
"country": "미국",
"stars": 3,
"scheduledAt": 1780273800000,
"actual": null,
"forecast": null,
"previous": null,
"unit": null
}
]
}
| 필드 | 설명 |
|---|---|
title | 이벤트명 |
country | 국가 |
stars | 중요도(1~3) |
scheduledAt | 발표 시각, UTC epoch ms (KST 표시는 +9h) |
actual / forecast / previous | 실제/예상/이전 값 (없으면 null) |
예시
curl "https://data-api.mgking.io/api/calendars/economic?from=2026-06-01&to=2026-06-30"
curl "https://data-api.mgking.io/api/calendars/economic?from=2026-06-01&to=2026-06-30&minStars=3"
크립토 캘린더
코인 이벤트(크립토) 캘린더는 아직 data-api 미제공 — 기존 백엔드 사용.