Tickers
거래소별 현물/선물 티커. crypto-exchange 수집기가 ccxt 로 1초 주기 폴링한 값을 redis 키 ticker:{exchange}:{market} 에 적재한 것을 서빙합니다.
GET /api/tickers/{exchange}/{market}
| 파라미터 | 위치 | 필수 | 허용값 |
|---|---|---|---|
exchange | path | ✅ | binance, bybit, okx, gateio, bithumb, upbit |
market | path | ✅ | spot, futures |
제약
bithumb, upbit 은 현물(spot)만 제공 — futures 요청 시 400 BAD_REQUEST.
응답 — 심볼별 티커 맵
{
"success": true, "code": "OK",
"data": {
"ETH/BTC": { "last": 0.02667, "bid": 0.02667, "ask": 0.02668, "pct": 1.677, "ts": 1782818353994 },
"LTC/BTC": { "last": 0.000715, "bid": 0.000714, "ask": 0.000715, "pct": 1.563, "ts": 1782818353788 }
}
}
| 필드 | 설명 |
|---|---|
last | 최종 체결가 |
bid / ask | 매수/매도 호가 (없으면 null) |
pct | 24h 변동률(%) |
ts | 해당 심볼 갱신 epoch(ms) |
예시
curl https://data-api.mgking.io/api/tickers/binance/spot
curl https://data-api.mgking.io/api/tickers/upbit/spot