외화 환산 기준시세 조회
curl --request POST \
--url https://dev.dayfin.io/v2/api/trade/vwapCur \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tranDtime": "20261014143000",
"tranNo": "202610141430000001",
"marketCodes": [
"KRW-BTC"
],
"currCode": "USD"
}
'import requests
url = "https://dev.dayfin.io/v2/api/trade/vwapCur"
payload = {
"tranDtime": "20261014143000",
"tranNo": "202610141430000001",
"marketCodes": ["KRW-BTC"],
"currCode": "USD"
}
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'],
currCode: 'USD'
})
};
fetch('https://dev.dayfin.io/v2/api/trade/vwapCur', 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/vwapCur",
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'
],
'currCode' => 'USD'
]),
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/vwapCur"
payload := strings.NewReader("{\n \"tranDtime\": \"20261014143000\",\n \"tranNo\": \"202610141430000001\",\n \"marketCodes\": [\n \"KRW-BTC\"\n ],\n \"currCode\": \"USD\"\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/vwapCur")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tranDtime\": \"20261014143000\",\n \"tranNo\": \"202610141430000001\",\n \"marketCodes\": [\n \"KRW-BTC\"\n ],\n \"currCode\": \"USD\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.dayfin.io/v2/api/trade/vwapCur")
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 \"currCode\": \"USD\"\n}"
response = http.request(request)
puts response.read_body{
"rspCode": "A0000",
"rspMessage": "처리 성공",
"dataList": [
{
"USD": [
{
"marketCode": "KRW-BTC",
"assetId": 1,
"tradePrice": "65000.1234567890"
}
]
}
],
"dataListCnt": 1
}마켓 데이터
현재가(외화환산 K-VWAP)
POST
/
v2
/
api
/
trade
/
vwapCur
외화 환산 기준시세 조회
curl --request POST \
--url https://dev.dayfin.io/v2/api/trade/vwapCur \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tranDtime": "20261014143000",
"tranNo": "202610141430000001",
"marketCodes": [
"KRW-BTC"
],
"currCode": "USD"
}
'import requests
url = "https://dev.dayfin.io/v2/api/trade/vwapCur"
payload = {
"tranDtime": "20261014143000",
"tranNo": "202610141430000001",
"marketCodes": ["KRW-BTC"],
"currCode": "USD"
}
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'],
currCode: 'USD'
})
};
fetch('https://dev.dayfin.io/v2/api/trade/vwapCur', 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/vwapCur",
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'
],
'currCode' => 'USD'
]),
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/vwapCur"
payload := strings.NewReader("{\n \"tranDtime\": \"20261014143000\",\n \"tranNo\": \"202610141430000001\",\n \"marketCodes\": [\n \"KRW-BTC\"\n ],\n \"currCode\": \"USD\"\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/vwapCur")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tranDtime\": \"20261014143000\",\n \"tranNo\": \"202610141430000001\",\n \"marketCodes\": [\n \"KRW-BTC\"\n ],\n \"currCode\": \"USD\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.dayfin.io/v2/api/trade/vwapCur")
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 \"currCode\": \"USD\"\n}"
response = http.request(request)
puts response.read_body{
"rspCode": "A0000",
"rspMessage": "처리 성공",
"dataList": [
{
"USD": [
{
"marketCode": "KRW-BTC",
"assetId": 1,
"tradePrice": "65000.1234567890"
}
]
}
],
"dataListCnt": 1
}K-VWAP을 다양한 법정통화로 환산하여 조회합니다.
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"
마켓 코드 목록
Example:
["KRW-BTC"]
환산 통화 코드. 생략하면 지원하는 전체 외화로 조회합니다.
Available options:
USD, EUR, CNY, JPY Example:
"USD"

