거래소별 OHLCV 조회
curl --request POST \
--url https://dev.dayfin.io/v2/api/coin/ohlcv/exchange \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tranDtime": "20261014143000",
"tranNo": "202610141430000001",
"marketCodes": [
"KRW-BTC"
],
"exchangeNm": "upbit",
"lastCandleDtm": "202610141430",
"limit": "100",
"candleUnit": "I"
}
'import requests
url = "https://dev.dayfin.io/v2/api/coin/ohlcv/exchange"
payload = {
"tranDtime": "20261014143000",
"tranNo": "202610141430000001",
"marketCodes": ["KRW-BTC"],
"exchangeNm": "upbit",
"lastCandleDtm": "202610141430",
"limit": "100",
"candleUnit": "I"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tranDtime: '20261014143000',
tranNo: '202610141430000001',
marketCodes: ['KRW-BTC'],
exchangeNm: 'upbit',
lastCandleDtm: '202610141430',
limit: '100',
candleUnit: 'I'
})
};
fetch('https://dev.dayfin.io/v2/api/coin/ohlcv/exchange', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dev.dayfin.io/v2/api/coin/ohlcv/exchange",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tranDtime' => '20261014143000',
'tranNo' => '202610141430000001',
'marketCodes' => [
'KRW-BTC'
],
'exchangeNm' => 'upbit',
'lastCandleDtm' => '202610141430',
'limit' => '100',
'candleUnit' => 'I'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dev.dayfin.io/v2/api/coin/ohlcv/exchange"
payload := strings.NewReader("{\n \"tranDtime\": \"20261014143000\",\n \"tranNo\": \"202610141430000001\",\n \"marketCodes\": [\n \"KRW-BTC\"\n ],\n \"exchangeNm\": \"upbit\",\n \"lastCandleDtm\": \"202610141430\",\n \"limit\": \"100\",\n \"candleUnit\": \"I\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://dev.dayfin.io/v2/api/coin/ohlcv/exchange")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tranDtime\": \"20261014143000\",\n \"tranNo\": \"202610141430000001\",\n \"marketCodes\": [\n \"KRW-BTC\"\n ],\n \"exchangeNm\": \"upbit\",\n \"lastCandleDtm\": \"202610141430\",\n \"limit\": \"100\",\n \"candleUnit\": \"I\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.dayfin.io/v2/api/coin/ohlcv/exchange")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tranDtime\": \"20261014143000\",\n \"tranNo\": \"202610141430000001\",\n \"marketCodes\": [\n \"KRW-BTC\"\n ],\n \"exchangeNm\": \"upbit\",\n \"lastCandleDtm\": \"202610141430\",\n \"limit\": \"100\",\n \"candleUnit\": \"I\"\n}"
response = http.request(request)
puts response.read_body{
"rspCode": "A0000",
"rspMessage": "처리 성공",
"dataList": [
{
"marketCode": "KRW-BTC",
"assetId": "1",
"exchangeNm": "upbit",
"candles": [
{
"open": "93000000",
"high": "93500000",
"low": "92500000",
"close": "93200000",
"accTradeVol": "12.3456789",
"candleDateTimeKst": "2026-10-14 14:30:00",
"timestamp": "1791955800000",
"updateTs": "1791955812345"
}
],
"candleCnt": 100
}
],
"dataListCnt": 1
}마켓 데이터
OHLCV(거래소)
POST
/
v2
/
api
/
coin
/
ohlcv
/
exchange
거래소별 OHLCV 조회
curl --request POST \
--url https://dev.dayfin.io/v2/api/coin/ohlcv/exchange \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tranDtime": "20261014143000",
"tranNo": "202610141430000001",
"marketCodes": [
"KRW-BTC"
],
"exchangeNm": "upbit",
"lastCandleDtm": "202610141430",
"limit": "100",
"candleUnit": "I"
}
'import requests
url = "https://dev.dayfin.io/v2/api/coin/ohlcv/exchange"
payload = {
"tranDtime": "20261014143000",
"tranNo": "202610141430000001",
"marketCodes": ["KRW-BTC"],
"exchangeNm": "upbit",
"lastCandleDtm": "202610141430",
"limit": "100",
"candleUnit": "I"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tranDtime: '20261014143000',
tranNo: '202610141430000001',
marketCodes: ['KRW-BTC'],
exchangeNm: 'upbit',
lastCandleDtm: '202610141430',
limit: '100',
candleUnit: 'I'
})
};
fetch('https://dev.dayfin.io/v2/api/coin/ohlcv/exchange', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dev.dayfin.io/v2/api/coin/ohlcv/exchange",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tranDtime' => '20261014143000',
'tranNo' => '202610141430000001',
'marketCodes' => [
'KRW-BTC'
],
'exchangeNm' => 'upbit',
'lastCandleDtm' => '202610141430',
'limit' => '100',
'candleUnit' => 'I'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dev.dayfin.io/v2/api/coin/ohlcv/exchange"
payload := strings.NewReader("{\n \"tranDtime\": \"20261014143000\",\n \"tranNo\": \"202610141430000001\",\n \"marketCodes\": [\n \"KRW-BTC\"\n ],\n \"exchangeNm\": \"upbit\",\n \"lastCandleDtm\": \"202610141430\",\n \"limit\": \"100\",\n \"candleUnit\": \"I\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://dev.dayfin.io/v2/api/coin/ohlcv/exchange")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tranDtime\": \"20261014143000\",\n \"tranNo\": \"202610141430000001\",\n \"marketCodes\": [\n \"KRW-BTC\"\n ],\n \"exchangeNm\": \"upbit\",\n \"lastCandleDtm\": \"202610141430\",\n \"limit\": \"100\",\n \"candleUnit\": \"I\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.dayfin.io/v2/api/coin/ohlcv/exchange")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tranDtime\": \"20261014143000\",\n \"tranNo\": \"202610141430000001\",\n \"marketCodes\": [\n \"KRW-BTC\"\n ],\n \"exchangeNm\": \"upbit\",\n \"lastCandleDtm\": \"202610141430\",\n \"limit\": \"100\",\n \"candleUnit\": \"I\"\n}"
response = http.request(request)
puts response.read_body{
"rspCode": "A0000",
"rspMessage": "처리 성공",
"dataList": [
{
"marketCode": "KRW-BTC",
"assetId": "1",
"exchangeNm": "upbit",
"candles": [
{
"open": "93000000",
"high": "93500000",
"low": "92500000",
"close": "93200000",
"accTradeVol": "12.3456789",
"candleDateTimeKst": "2026-10-14 14:30:00",
"timestamp": "1791955800000",
"updateTs": "1791955812345"
}
],
"candleCnt": 100
}
],
"dataListCnt": 1
}각 거래소별 가상자산 마켓페어의 분/시간/일/주/월 캔들 데이터를 조회합니다.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
요청 거래일시 (yyyyMMddHHmmss)
Required string length:
14Example:
"20261014143000"
요청별 고유 거래번호
Minimum string length:
1Example:
"202610141430000001"
마켓 코드 목록 (최대 10개)
Example:
["KRW-BTC"]
거래소명
Available options:
upbit, bithumb, coinone, digitalx, gopax Example:
"upbit"
조회 기준 마지막 캔들 일시 (yyyyMMddHHmm). 생략하면 현재 일시 기준으로 조회합니다.
Example:
"202610141430"
조회 캔들 수 (0~100, 기본값 1)
Example:
"100"
캔들 단위 (I: 1분, H: 1시간, D: 1일, W: 1주, M: 1개월)
Available options:
I, H, D, W, M Example:
"I"

