한국 기준시세 조회
curl --request POST \
--url https://dev.dayfin.io/v2/api/trade/vwap \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tranDtime": "20261014143000",
"tranNo": "202610141430000001",
"marketCodes": [
"KRW-BTC"
],
"assetIds": [
13,
14
],
"assetSymbols": [
"BTC",
"ETH"
]
}
'import requests
url = "https://dev.dayfin.io/v2/api/trade/vwap"
payload = {
"tranDtime": "20261014143000",
"tranNo": "202610141430000001",
"marketCodes": ["KRW-BTC"],
"assetIds": [13, 14],
"assetSymbols": ["BTC", "ETH"]
}
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'],
assetIds: [13, 14],
assetSymbols: ['BTC', 'ETH']
})
};
fetch('https://dev.dayfin.io/v2/api/trade/vwap', 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/trade/vwap",
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'
],
'assetIds' => [
13,
14
],
'assetSymbols' => [
'BTC',
'ETH'
]
]),
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/trade/vwap"
payload := strings.NewReader("{\n \"tranDtime\": \"20261014143000\",\n \"tranNo\": \"202610141430000001\",\n \"marketCodes\": [\n \"KRW-BTC\"\n ],\n \"assetIds\": [\n 13,\n 14\n ],\n \"assetSymbols\": [\n \"BTC\",\n \"ETH\"\n ]\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/trade/vwap")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tranDtime\": \"20261014143000\",\n \"tranNo\": \"202610141430000001\",\n \"marketCodes\": [\n \"KRW-BTC\"\n ],\n \"assetIds\": [\n 13,\n 14\n ],\n \"assetSymbols\": [\n \"BTC\",\n \"ETH\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.dayfin.io/v2/api/trade/vwap")
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 \"assetIds\": [\n 13,\n 14\n ],\n \"assetSymbols\": [\n \"BTC\",\n \"ETH\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"rspCode": "A0000",
"rspMessage": "처리 성공",
"dataList": [
{
"assetSymbol": "BTC",
"assetId": 1,
"marketCode": "KRW-BTC",
"tradePrice": "93000000",
"open": "92500000",
"high": "93500000",
"low": "92000000",
"change": "500000",
"changeRate": "0.54054",
"flag": "UP",
"accTradeValue": "1145000000.12345678",
"accTradeVol": "12.3456789",
"tradeVol": "0.001",
"accBuyVol": "7.12345678",
"accSellVol": "5.22222212",
"highest52WeekPrice": "95000000",
"highest52WeekDate": "20261001",
"lowest52WeekPrice": "70000000",
"lowest52WeekDate": "20260115",
"preClosedPrice": "92500000",
"timestamp": 1791955800000,
"exchangeTs": 1791955799000,
"premium": {}
}
],
"dataListCnt": 1
}마켓 데이터
현재가(K-VWAP)
POST
/
v2
/
api
/
trade
/
vwap
한국 기준시세 조회
curl --request POST \
--url https://dev.dayfin.io/v2/api/trade/vwap \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tranDtime": "20261014143000",
"tranNo": "202610141430000001",
"marketCodes": [
"KRW-BTC"
],
"assetIds": [
13,
14
],
"assetSymbols": [
"BTC",
"ETH"
]
}
'import requests
url = "https://dev.dayfin.io/v2/api/trade/vwap"
payload = {
"tranDtime": "20261014143000",
"tranNo": "202610141430000001",
"marketCodes": ["KRW-BTC"],
"assetIds": [13, 14],
"assetSymbols": ["BTC", "ETH"]
}
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'],
assetIds: [13, 14],
assetSymbols: ['BTC', 'ETH']
})
};
fetch('https://dev.dayfin.io/v2/api/trade/vwap', 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/trade/vwap",
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'
],
'assetIds' => [
13,
14
],
'assetSymbols' => [
'BTC',
'ETH'
]
]),
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/trade/vwap"
payload := strings.NewReader("{\n \"tranDtime\": \"20261014143000\",\n \"tranNo\": \"202610141430000001\",\n \"marketCodes\": [\n \"KRW-BTC\"\n ],\n \"assetIds\": [\n 13,\n 14\n ],\n \"assetSymbols\": [\n \"BTC\",\n \"ETH\"\n ]\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/trade/vwap")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tranDtime\": \"20261014143000\",\n \"tranNo\": \"202610141430000001\",\n \"marketCodes\": [\n \"KRW-BTC\"\n ],\n \"assetIds\": [\n 13,\n 14\n ],\n \"assetSymbols\": [\n \"BTC\",\n \"ETH\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.dayfin.io/v2/api/trade/vwap")
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 \"assetIds\": [\n 13,\n 14\n ],\n \"assetSymbols\": [\n \"BTC\",\n \"ETH\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"rspCode": "A0000",
"rspMessage": "처리 성공",
"dataList": [
{
"assetSymbol": "BTC",
"assetId": 1,
"marketCode": "KRW-BTC",
"tradePrice": "93000000",
"open": "92500000",
"high": "93500000",
"low": "92000000",
"change": "500000",
"changeRate": "0.54054",
"flag": "UP",
"accTradeValue": "1145000000.12345678",
"accTradeVol": "12.3456789",
"tradeVol": "0.001",
"accBuyVol": "7.12345678",
"accSellVol": "5.22222212",
"highest52WeekPrice": "95000000",
"highest52WeekDate": "20261001",
"lowest52WeekPrice": "70000000",
"lowest52WeekDate": "20260115",
"preClosedPrice": "92500000",
"timestamp": 1791955800000,
"exchangeTs": 1791955799000,
"premium": {}
}
],
"dataListCnt": 1
}국내 거래소 KRW 마켓에서 거래되는 가상자산의
거래량가중평균시세(VWAP: Volume Weighted Average Price)를 조회합니다.
거래량가중평균시세(VWAP: Volume Weighted Average Price)를 조회합니다.
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"
마켓 코드 목록. assetIds, assetSymbols와 동시에 입력할 수 없습니다.
Example:
["KRW-BTC"]
자산 ID 목록. marketCodes, assetSymbols와 동시에 입력할 수 없습니다.
Example:
[13, 14]
자산 심볼 목록. marketCodes, assetIds와 동시에 입력할 수 없습니다.
Example:
["BTC", "ETH"]

