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

# /messari/assets/metrics

> Get the historical price and volume time series (OHLCV candles) for a crypto asset

**Price:** 1 credit

**💡 AI Hint:** Get the historical OHLCV price and volume time series for a crypto asset by its slug or ticker symbol. Returns a series of candles, each with a unix-second timestamp and the open, close, high, low price and traded volume (price averaged across exchanges). Choose the candle interval (1h, 1d, 1w) and how many days of history to return. Points are ordered oldest to newest.

**⚠️ Common errors:** 412: Asset not found or no price history available



## OpenAPI

````yaml /openapi-filtered.json post /api/messari/assets/metrics
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/messari/assets/metrics:
    post:
      tags:
        - /messari
      summary: /messari/assets/metrics
      description: >-
        Get the historical price and volume time series (OHLCV candles) for a
        crypto asset


        **Price:** 1 credit


        **💡 AI Hint:** Get the historical OHLCV price and volume time series
        for a crypto asset by its slug or ticker symbol. Returns a series of
        candles, each with a unix-second timestamp and the open, close, high,
        low price and traded volume (price averaged across exchanges). Choose
        the candle interval (1h, 1d, 1w) and how many days of history to return.
        Points are ordered oldest to newest.


        **⚠️ Common errors:** 412: Asset not found or no price history available
      operationId: __api_messari_assets_metrics_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MessariAssetsMetricsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MessariPricePoint'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MessariAssetsMetricsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        asset:
          type: string
          minLength: 1
          description: Asset slug or ticker symbol
          examples:
            - bitcoin
            - ethereum
            - BTC
        interval:
          $ref: '#/components/schemas/MessariMetricInterval'
          description: Candle interval
          default: 1d
        days:
          type: integer
          minimum: 1
          description: Number of days of history to return, counting back from now
          default: 30
      type: object
      required:
        - asset
    MessariPricePoint:
      properties:
        '@type':
          type: string
          default: MessariPricePoint
        timestamp:
          type: integer
        open:
          anyOf:
            - type: number
            - type: 'null'
        close:
          anyOf:
            - type: number
            - type: 'null'
        high:
          anyOf:
            - type: number
            - type: 'null'
        low:
          anyOf:
            - type: number
            - type: 'null'
        volume:
          anyOf:
            - type: number
            - type: 'null'
      type: object
      required:
        - timestamp
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    MessariMetricInterval:
      type: string
      enum:
        - 1h
        - 1d
        - 1w
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````