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

# 현재가(거래소)

각 거래소별 가상자산 마켓페어의 최근 체결가격을 실시간으로 조회합니다.

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

## 인증

**Authorization** `string` *required*

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

## 구독 요청

**type** `string` *required*

요청 유형. `market_exchange`

**marketCodes** `string[]`

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

* 미입력 시 전체 응답

**exchangeNms** `string[]`

거래소명 목록 (예: `["upbit", "bithumb"]`)

* 미입력 시 전체 응답

**quoteCurrency** `string` (default: KRW)

기준 통화 코드 (예: `"KRW"`)

* 미입력 시 `KRW`로 처리

## 수신 메시지

**type** `string`

메시지 유형. `market_exchange`

**exchangeNm** `string`

거래소명 (예: `upbit`)

**marketCode** `string`

마켓코드 (예: `KRW-BTC`)

**assetId** `string`

자산 ID

**quoteCurrency** `string`

기준 통화 코드 (예: `KRW`)

**tradePrice** `string`

현재가 (최근 체결가격)

**open** `string`

시가 (KST 09시기준)

**high** `string`

고가 (KST 09시기준)

**low** `string`

저가 (KST 09시기준)

**change** `string`

전일대비 변동금액

**changeRate** `string`

전일대비 등락률(%)

**flag** `string`

등락 구분 (예: `down`)

**accTradeValue** `string`

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

**accTradeVol** `string`

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

**accSellVol** `string`

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

**accBuyVol** `string`

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

**sequenceId** `string`

거래 번호

**tradeDate** `string`

체결 일자 (`yyyyMMdd`)

**tradeTime** `string`

체결 시각 (`HHmmssSSS`)

**timestamp** `integer`

제공 시각 (Unix ms)

**exchangeTs** `integer`

거래소 체결 시각 (Unix ms)

```json Subscribe theme={null}
{
    "type": "market_exchange",
    "marketCodes": [
        "KRW-BTC",
        "KRW-ETH"
    ],
    "exchangeNms": [
        "upbit",
        "coinone"
    ],
    "quoteCurrency": "KRW"
}
```

```json Ticker theme={null}
{
    "type": "market_exchange",
    "exchangeNm": "upbit",
    "marketCode": "KRW-BTC",
    "assetId": "13",
    "quoteCurrency":"KRW",
    "tradePrice": "50026000",
    "open": "50170000",
    "high": "50389000",
    "low": "49940000",
    "change": "-144000",
    "changeRate": "-0.29",
    "flag": "down",
    "accTradeValue": "172000000000",
    "accTradeVol": "3444.506",
    "accSellVol": "1500.300",
    "accBuyVol": "1944.206",
    "sequenceId": "14209",
    "tradeDate": "20231101",
    "tradeTime": "175622000",
    "timestamp": 1690532801700,
    "exchangeTs": 1690532801556
}
```


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