Yun-SeYeong / Bitcoin-Trading-System

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

분봉 조회 API #1

Closed Yun-SeYeong closed 2 years ago

Yun-SeYeong commented 2 years ago

분봉 조회 API

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

URL

/candles/minute-candle/v1/{unit}

Path Param

:key:key type
unit integer

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
        }
    ]
}