> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bonanzalab.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 현재가(외화환산 K-VWAP)

K-VWAP을 다양한 법정통화로 환산하여 조회합니다.

```text Endpoint theme={null}
wss://api.dayfin.io/ws/v2
```

## 인증

**Authorization** `string` *required*

`Bearer {access_token}` 형식의 인증 토큰

## 구독 요청

**type** `string` *required*

데이터 요청 유형. `ticker_currency`

**streamType** `string` *required*

수신타입

* `realtime`: 실시간 (모든 Tick)
* `snapshot`: 1초 단위

**currCode** `string`

통화코드 (예: `USD`)

* `USD`: 미국달러
* `EUR`: 유로
* `JPY`: 일본 엔
* `CNY`: 위안
* 미입력 시 전체 응답

## 수신 메시지

**type** `string`

데이터 요청 유형

**currCode** `string`

통화 코드

* `USD`: 미국달러
* `EUR`: 유로
* `JPY`: 일본 엔
* `CNY`: 위안

**assetSymbol** `string`

가상자산 심볼

**assetId** `number`

자산 ID

**tradePrice** `string`

현재가

**change** `string`

전일대비 가격

**changeRate** `string`

전일대비 가격 등락률(%)

**flag** `string`

등락 플래그

* `UP`: 전일대비가격 > 0
* `-`: 전일대비가격 = 0
* `DOWN`: 전일대비가격 \< 0

**accTradeValue** `string`

누적 거래대금 (KST 09시 기준)

**marketCode** `string`

마켓코드

**sequenceId** `string`

거래 번호

**timestamp** `number`

타임스탬프

**vwapTs** `number`

K-VWAP 타임스탬프

```json Subscribe theme={null}
{
    "type": "ticker_currency",
    "marketCodes": [
        "KRW-BTC",
        "KRW-ETH"
    ],
    "currCode": "USD",
    "streamType": "realtime"
}
```

```json Ticker theme={null}
{
  "type": "ticker_currency",
  "marketCode": "KRW-BTC",
  "assetId": "13",
  "assetSymbol": "BTC",
  "currCode": "USD",
  "tradePrice": "80277.7052030174",
  "change": "78.2504451914",
  "changeRate": "-0.0973797705",
  "flag": "UP",
  "accTradeValue": "100166352.4098270545",
  "sequenceId": "91091",
  "timestamp": 1778830509000,
  "vwapTs": 1778830510420
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.