μΊ”λ“€ (Candle)

🚧

이 κΈ°λŠ₯은 ν˜„μž¬ 베타 λ²„μ „μœΌλ‘œ μ œκ³΅λ©λ‹ˆλ‹€.


🚧

캔듀은 ν•΄λ‹Ή μ‹œκ°„λŒ€μ— 체결이 λ°œμƒν•œ κ²½μš°μ—λ§Œ μƒμ„±λ©λ‹ˆλ‹€.

  • candle_date_time이 2024-08-31T22:25:00인 μ΄ˆλ΄‰ 캔듀은 2024-08-31T22:25:00 (이상) ~ 2024-08-31T22:25:01 (미만) μ‚¬μ΄μ˜ 체결둜 κ΅¬μ„±λ©λ‹ˆλ‹€.
  • ν•΄λ‹Ή μ‹œκ°„ λ™μ•ˆ 체결이 없을 경우, 2024-08-31T22:25:00 캔듀은 μƒμ„±λ˜μ§€ μ•ŠμœΌλ©° μ›Ήμ†ŒμΌ“μœΌλ‘œ 데이터가 내렀가지 μ•ŠμŠ΅λ‹ˆλ‹€.

Request

μš”μ²­μ€ JSON Objectλ₯Ό μ΄μš©ν•˜λ©° 응닡 λ˜ν•œ JSON Object μž…λ‹ˆλ‹€. μš”μ²­μ€ 크게 ticket field, type field, format field 둜 λ‚˜λˆ„μ–΄μ§€λ©° ν•˜λ‚˜μ˜ μš”μ²­μ— μ—¬λŸ¬ 개의 type field λ₯Ό λͺ…μ‹œν•  수 μžˆμŠ΅λ‹ˆλ‹€. ticket field 와 format field 에 λŒ€ν•΄μ„œλŠ” μš”μ²­ 방법 및 포맷을 μ°Έκ³ ν•΄μ£Όμ‹œκΈ° λ°”λžλ‹ˆλ‹€.

πŸ“˜

Request format

[{Ticket Field},{Type Field},....,{Type Field},{Format Field}]

Type Field

μˆ˜μ‹ ν•˜κ³  싢은 μ‹œμ„Έ 정보λ₯Ό λ‚˜μ—΄ν•˜λŠ” ν•„λ“œμž…λ‹ˆλ‹€.
is_only_snapshot, is_only_realtime ν•„λ“œλŠ” μƒλž΅ κ°€λŠ₯ν•˜λ©° λͺ¨λ‘ μƒλž΅μ‹œ μŠ€λƒ…μƒ·κ³Ό μ‹€μ‹œκ°„ 데이터 λͺ¨λ‘λ₯Ό μˆ˜μ‹ ν•©λ‹ˆλ‹€.

ν•„λ“œλͺ…
νƒ€μž…
λ‚΄μš©
ν•„μˆ˜ μ—¬λΆ€
κΈ°λ³Έ κ°’
typeString데이터 νƒ€μž…
-Β candle.1s: μ΄ˆλ΄‰
O
codesListλ§ˆμΌ“ μ½”λ“œ 리슀트
*λŒ€λ¬Έμžλ‘œ μš”μ²­ν•΄μ•Ό ν•©λ‹ˆλ‹€.
O
is_only_snapshotBooleanμŠ€λƒ…μƒ· μ‹œμ„Έλ§Œ 제곡Xfalse
is_only_realtimeBooleanμ‹€μ‹œκ°„ μ‹œμ„Έλ§Œ 제곡Xfalse

Response

  • 데이터 전솑 μ£ΌκΈ°: 1초

🚧

같은 candle_date_time 데이터가 μ—¬λŸ¬ 번 λ‚΄λ €κ°ˆ 수 μžˆμŠ΅λ‹ˆλ‹€.

  • 데이터 전솑 μ£ΌκΈ°λ₯Ό μ™„λ²½ν•˜κ²Œ 보μž₯ν•˜μ§€ μ•ŠμœΌλ©°, 같은 μ‹œκ°„λŒ€μ˜ μΊ”λ“€ 데이터가 μ—¬λŸ¬ 번 λ‚΄λ €κ°ˆ 수 μžˆμŠ΅λ‹ˆλ‹€.
  • κ°€μž₯ λ§ˆμ§€λ§‰ 데이터가 κ°€μž₯ μ΅œμ‹  데이터 μž…λ‹ˆλ‹€.
ν•„λ“œλͺ…
μΆ•μ•½ν˜• (format: SIMPLE)
λ‚΄μš©
νƒ€μž…κ°’
typetyνƒ€μž…Stringcandle.1s : μ΄ˆλ΄‰
codecdλ§ˆμΌ“ μ½”λ“œ (ex. KRW-BTC)String
candle_date_time_utccdttmuμΊ”λ“€ κΈ°μ€€ μ‹œκ°(UTC κΈ°μ€€)
포맷: yyyy-MM-dd'T'HH:mm:ss
String
candle_date_time_kstcdttmkμΊ”λ“€ κΈ°μ€€ μ‹œκ°(KST κΈ°μ€€)
포맷: yyyy-MM-dd'T'HH:mm:ss
String
opening_priceopμ‹œκ°€Double
high_pricehpκ³ κ°€Double
low_pricelpμ €κ°€Double
trade_pricetpμ’…κ°€Double
candle_acc_trade_volumecatvλˆ„μ  거래 κΈˆμ•‘Double
candle_acc_trade_pricecatpλˆ„μ  κ±°λž˜λŸ‰Double
timestamptmsνƒ€μž„μŠ€νƒ¬ν”„ (millisecond)Long
stream_typest슀트림 νƒ€μž…StringSNAPSHOT : μŠ€λƒ…μƒ·
REALTIME : μ‹€μ‹œκ°„

Example

Request

  • KRW-BTC, KRW-ETH 의 μ΄ˆλ΄‰ μˆ˜μ‹ 
[
  {
    "ticket": "test"
  },
  {
    "type": "candle.1s",
    "codes": [
      "KRW-BTC",
      "KRW-ETH"
    ]
  },
  {
    "format": "DEFAULT"
  }
]

Response

{
  "type": "candle.1s",
  "code": "KRW-BTC",
  "candle_date_time_utc": "2025-01-02T04:28:05",
  "candle_date_time_kst": "2025-01-02T13:28:05",
  "opening_price": 142009000.00000000,
  "high_price": 142009000.00000000,
  "low_price": 142009000.00000000,
  "trade_price": 142009000.00000000,
  "candle_acc_trade_volume": 0.00606119,
  "candle_acc_trade_price": 860743.5307100000000000,
  "timestamp": 1735792085824,
  "stream_type": "REALTIME"
}
{
  "type": "candle.1s",
  "code": "KRW-ETH",
  "candle_date_time_utc": "2025-01-02T04:28:05",
  "candle_date_time_kst": "2025-01-02T13:28:05",
  "opening_price": 5059000.00000000,
  "high_price": 5059000.00000000,
  "low_price": 5059000.00000000,
  "trade_price": 5059000.00000000,
  "candle_acc_trade_volume": 0.08158869,
  "candle_acc_trade_price": 412757.1827100000000000,
  "timestamp": 1735792085749,
  "stream_type": "REALTIME"
}