> ## 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.

# 현재가(VWAP)

국내 거래소 KRW마켓에서 거래되는 가상자산의 거래량가중평균시세(VWAP: Volume Weighted Average Price)를 조회합니다.

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

## 인증

**Authorization** `string` *required*

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

## 구독 요청

**type** `string` *required*

데이터 요청 유형. `ticker`

**marketCodes** `string[]` *required*

마켓코드 (예: `["KRW-BTC", "KRW-ETH"]`)

**streamType** `string` *required*

수신타입

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

## 수신 메시지

**type** `string`

데이터 요청 유형

**assetSymbol** `string`

가상자산 심볼

**assetId** `number`

자산 ID

**tradePrice** `string`

거래량 가중평균 가격

**open** `string`

시가 (KST 09시 기준)

**high** `string`

고가 (KST 09시 기준)

**low** `string`

저가 (KST 09시 기준)

**preClosedPrice** `string`

전일종가

**change** `string`

전일대비 가격

**flag** `string`

등락 플래그

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

**changeRate** `string`

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

**accTradeValue** `string`

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

**tradeVol** `string`

거래량

**accTradeVol** `string`

누적 거래량 (KST 09시 기준)

**accSellVol** `string`

매도 누적 거래량 (KST 09시 기준)

**accBuyVol** `string`

매수 누적 거래량 (KST 09시 기준)

**highest52WeekPrice** `string`

52주 최고가

**highest52WeekDate** `string`

52주 최고가 달성일 (`YYYYMMDD`)

**lowest52WeekPrice** `string`

52주 최저가

**lowest52WeekDate** `string`

52주 최저가 달성일 (`YYYYMMDD`)

**marketCode** `string`

마켓코드

**sequenceId** `string`

거래번호

**timestamp** `number`

K-VWAP 산출 완료 시각

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

```json Ticker theme={null}
{
    "type": "ticker",
    "assetSymbol": "BTC",
    "assetId": 13,
    "tradePrice": "50026000",
    "open": "50170000",
    "high": "50389000",
    "low": "49940000",
    "preClosedPrice": "50170000",
    "change": "-144000",
    "flag": "down",
    "changeRate": "-0.29",
    "accTradeValue": "172000000000",
    "tradeVol": "0.012",
    "accTradeVol": "3444.506",
    "accSellVol": "1500.300",
    "accBuyVol": "1944.206",
    "highest52WeekPrice": "60000000",
    "highest52WeekDate": "20230415",
    "lowest52WeekPrice": "21000000",
    "lowest52WeekDate": "20221230",
    "marketCode": "KRW-BTC",
    "sequenceId": "14209",
    "timestamp": 1690532801700
}
```


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