μ΄ κΈ°λ₯μ νμ¬ λ² ν λ²μ μΌλ‘ μ 곡λ©λλ€.
μΊλ€μ ν΄λΉ μκ°λμ μ²΄κ²°μ΄ λ°μν κ²½μ°μλ§ μμ±λ©λλ€.
- 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 νλλ μλ΅ κ°λ₯νλ©° λͺ¨λ μλ΅μ μ€λ
μ·κ³Ό μ€μκ° λ°μ΄ν° λͺ¨λλ₯Ό μμ ν©λλ€.
νλλͺ
| νμ
| λ΄μ© | νμ μ¬λΆ | κΈ°λ³Έ κ° |
---|---|---|---|---|
type | String | λ°μ΄ν° νμ
-Β candle.1s : μ΄λ΄ | O | |
codes | List | λ§μΌ μ½λ 리μ€νΈ *λλ¬Έμλ‘ μμ²ν΄μΌ ν©λλ€. | O | |
is_only_snapshot | Boolean | μ€λ μ· μμΈλ§ μ 곡 | X | false |
is_only_realtime | Boolean | μ€μκ° μμΈλ§ μ 곡 | X | false |
Response
- λ°μ΄ν° μ μ‘ μ£ΌκΈ°: 1μ΄
κ°μ candle_date_time λ°μ΄ν°κ° μ¬λ¬ λ² λ΄λ €κ° μ μμ΅λλ€.
- λ°μ΄ν° μ μ‘ μ£ΌκΈ°λ₯Ό μλ²½νκ² λ³΄μ₯νμ§ μμΌλ©°, κ°μ μκ°λμ μΊλ€ λ°μ΄ν°κ° μ¬λ¬ λ² λ΄λ €κ° μ μμ΅λλ€.
- κ°μ₯ λ§μ§λ§ λ°μ΄ν°κ° κ°μ₯ μ΅μ λ°μ΄ν° μ λλ€.
νλλͺ | μΆμ½ν (format: SIMPLE) | λ΄μ© | νμ | κ° |
---|---|---|---|---|
type | ty | νμ | String | candle.1s : μ΄λ΄ |
code | cd | λ§μΌ μ½λ (ex. KRW-BTC) | String | |
candle_date_time_utc | cdttmu | μΊλ€ κΈ°μ€ μκ°(UTC κΈ°μ€) ν¬λ§·: yyyy-MM-dd'T'HH:mm:ss | String | |
candle_date_time_kst | cdttmk | μΊλ€ κΈ°μ€ μκ°(KST κΈ°μ€) ν¬λ§·: yyyy-MM-dd'T'HH:mm:ss | String | |
opening_price | op | μκ° | Double | |
high_price | hp | κ³ κ° | Double | |
low_price | lp | μ κ° | Double | |
trade_price | tp | μ’ κ° | Double | |
candle_acc_trade_volume | catv | λμ κ±°λ κΈμ‘ | Double | |
candle_acc_trade_price | catp | λμ κ±°λλ | Double | |
timestamp | tms | νμμ€ν¬ν (millisecond) | Long | |
stream_type | st | μ€νΈλ¦Ό νμ | String | SNAPSHOT : μ€λ
μ·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"
}