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

# Get Single Asset OHLCV

> Retrieve OHLCV data for a specific asset

## Overview

Get the current OHLCV (Open, High, Low, Close, Volume) data for a specific asset over the last 24 hours. This endpoint returns just the OHLCV data block with `asset_code` and `asset_slug` included.

## Example Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -H "x-api-key: YOUR_API_KEY" \
    "https://api.blockworks.com/v1/assets/ethereum/ohlcv"
  ```

  ```typescript TypeScript theme={null}
  const res = await fetch(
    'https://api.blockworks.com/v1/assets/ethereum/ohlcv',
    { headers: { 'x-api-key': 'YOUR_API_KEY' } }
  )
  const data = await res.json()
  ```

  ```python Python theme={null}
  import requests

  r = requests.get(
    'https://api.blockworks.com/v1/assets/ethereum/ohlcv',
    headers={'x-api-key': 'YOUR_API_KEY'}
  )
  data = r.json()
  ```
</CodeGroup>

## Example Response

```json theme={null}
{
  "open": 2991.0164373997,
  "high": 4514.81,
  "low": 4347.24,
  "close": 2972.9752699223,
  "volume": 14018548707.668,
  "updated_at": 1759454319,
  "asset_code": "ETH",
  "asset_slug": "ethereum"
}
```

### Response Fields

| Field        | Type   | Description                                      |
| ------------ | ------ | ------------------------------------------------ |
| `open`       | number | Price at the start of the trailing 24h window    |
| `high`       | number | Highest price during the trailing 24h window     |
| `low`        | number | Lowest price during the trailing 24h window      |
| `close`      | number | Price at the end of the trailing 24h window      |
| `volume`     | number | Total traded volume over the trailing 24h window |
| `updated_at` | number | Unix timestamp when values were last refreshed   |
| `asset_code` | string | Asset code (e.g., "ETH")                         |
| `asset_slug` | string | Asset slug (e.g., "ethereum")                    |

## Notes

* This endpoint is equivalent to using `?expand=ohlcv_last_24_h` on the `/v1/assets/{idOrSlug}` endpoint, but returns only the OHLCV data.
* The response includes `asset_code` and `asset_slug` for easy identification.

## See also

* [Get Single Asset](/api-reference/assets/get-single)
* [OHLCV (Expand Parameter)](/api-reference/assets/expand/ohlcv_last_24h)
* [All Assets](/api-reference/assets/list)


## OpenAPI

````yaml GET /v1/assets/{idOrSlug}/ohlcv
openapi: 3.0.0
info:
  title: Blockworks API
  description: ''
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.blockworks.com
security:
  - x-api-key: []
tags: []
paths:
  /v1/assets/{idOrSlug}/ohlcv:
    get:
      tags:
        - assets
      summary: Get Asset OHLCV
      description: >-
        Get OHLCV (Open, High, Low, Close, Volume) data for the last 24 hours
        for a single asset. Returns only the OHLCV data with asset identifiers.
      operationId: AssetController_getOhlcv_v1
      parameters:
        - name: idOrSlug
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: OHLCV data for the specified asset
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetOhlcvWithIdentifiers'
              example:
                open: 2991.0164373997
                high: 4514.81
                low: 4347.24
                close: 2972.9752699223
                volume: 14018548707.668
                updated_at: 1759454319
                asset_code: ETH
                asset_slug: ethereum
        '400':
          description: Bad Request
        '404':
          description: Not Found
components:
  schemas:
    AssetOhlcvWithIdentifiers:
      type: object
      properties:
        open:
          type: number
          nullable: true
          format: double
        high:
          type: number
          nullable: true
          format: double
        low:
          type: number
          nullable: true
          format: double
        close:
          type: number
          nullable: true
          format: double
        volume:
          type: number
          nullable: true
          format: double
        updated_at:
          type: number
          nullable: true
          description: Unix timestamp
        asset_code:
          type: string
          maxLength: 20
        asset_slug:
          type: string
          maxLength: 100
      required:
        - open
        - high
        - low
        - close
        - volume
        - updated_at
        - asset_code
        - asset_slug
  securitySchemes:
    x-api-key:
      type: apiKey
      in: header
      name: x-api-key

````