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

# 일거래금액(거래소-마켓별)

특정 마켓페어의 당일 또는 최근 24시간 누적 거래금액을 실시간으로 조회합니다.

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

## 인증

**Authorization** `string` *required*

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

## 구독 요청

**type** `string` *required*

데이터 요청 유형. `market_tot`

**sort** `string` *required*

구분

* `0`: 당일(KST 09시 기준)
* `1`: 최근 24시간

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

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

* 미입력 시 `KRW`로 처리

**marketCodes** `string[]`

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

* 미입력 시 `quoteCurrency` 기준 통화의 마켓 전체 응답

## 수신 메시지

**type** `string`

데이터 요청 유형

**marketCode** `string`

마켓코드

**assetId** `string`

자산 ID

**accTradeValue** `string`

누적 거래대금

**quoteCurrency** `string`

기준 통화 코드

**timestamp** `number`

타임스탬프

```json Subscribe theme={null}
{
    "type": "market_tot",
    "sort": "0",
    "marketCodes": [
        "KRW-BTC",
        "KRW-ETH"
    ],
    "quoteCurrency": "KRW"
}
```

```json Ticker theme={null}
{
    "type": "market_tot",
    "marketCode": "KRW-BTC",
    "assetId": "13",
    "quoteCurrency":"KRW",
    "accTradeValue": "283691496628",
    "timestamp": 1690532801700
}
```


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