Yun-SeYeong / Bitcoin-Trading-System

비트코인 자동매매 통합 시스템
1 stars 0 forks source link

일봉 조회 API #2

Closed Yun-SeYeong closed 2 years ago

Yun-SeYeong commented 2 years ago

일봉 조회 API

Upbit API를 통해 Sync된 일봉 데이터를 조회 하는 API이다. Query Param에 market과 count를 지정하면 해당 market에서 최근 count 갯수만큼의 일봉을 조회할 수 있다.

Method

GET

URL

/candles/day-candle/v1

Query Param

:key:key type
market string
count integer

Response

:key:key description type
market 마켓명 string
candle_date_time_kst 캔들 시각(KST 기준) string
open_price 시가 Double
high_price 고가 Double
low_price 저가 Double
trade_price 종가 Double
candle_acc_trade_volume 누적 거래량 Double
{
    "data": [
        {
            "market": "KRW-BTC",
            "candle_date_time_kst": "2022-04-30T15:15",
            "opening_price": 29276000.00000000,
            "high_price": 29298000.00000000,
            "low_price": 29276000.00000000,
            "trade_price": 29298000.00000000,
            "candle_acc_trade_volume": 0.00482296
        }
    ]
}