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

# Get OHLCV Data for a token/pool pair

> OHLCV para una pool concreta.

## SDK Example

```typescript
import { Client } from '@solana-tracker/data-api';

const client = new Client({ apiKey: 'YOUR_API_KEY' });

const data = await client.getPoolChartData('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN', '9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2', '1h', 1700000000, 1700086400);
```


## OpenAPI

````yaml /es/data-api/openapi.json get /chart/{token}/{pool}
openapi: 3.1.0
info:
  title: API de datos Solana Tracker
  description: >-
    API de datos de Solana Tracker: precios de tokens, tenedores, operaciones,
    gráficos, datos de cartera, señales de riesgo y analítica de mercado.
  version: 1.0.0
  contact:
    email: contact@solanatracker.io
servers:
  - url: https://data.solanatracker.io
    description: Entorno de producción
security:
  - apiKey: []
paths:
  /chart/{token}/{pool}:
    get:
      tags:
        - Chart
      summary: Get OHLCV Data for a token/pool pair
      description: OHLCV para una pool concreta.
      parameters:
        - name: token
          in: path
          required: true
          schema:
            type: string
        - name: pool
          in: path
          required: true
          schema:
            type: string
        - name: type
          in: query
          description: Intervalo (p. ej. 1s, 1m, 1h, 1d)
          schema:
            type: string
            enum:
              - 1s
              - 5s
              - 15s
              - 1m
              - 3m
              - 5m
              - 15m
              - 30m
              - 1h
              - 2h
              - 4h
              - 6h
              - 8h
              - 12h
              - 1d
              - 3d
              - 1w
              - 1mn
        - name: time_from
          in: query
          description: Inicio (Unix en segundos)
          schema:
            type: integer
        - name: time_to
          in: query
          description: Fin (Unix en segundos)
          schema:
            type: integer
        - name: marketCap
          in: query
          description: Devolver gráfico de capitalización en lugar de precio
          schema:
            type: boolean
            default: false
        - name: currency
          in: query
          description: Moneda de los valores del gráfico
          schema:
            type: string
            enum:
              - usd
              - sol
              - eur
            default: usd
        - name: removeOutliers
          in: query
          description: false para desactivar el filtrado de outliers
          schema:
            type: boolean
            default: true
        - name: timezone
          in: query
          description: Zona horaria (abreviatura o IANA, p. ej. Europe/Madrid)
          schema:
            type: string
        - name: fastCache
          in: query
          description: Activa caché en caliente en el endpoint de gráficos.
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChartResponse'
      x-codeSamples:
        - lang: typescript
          label: SDK
          source: >
            import { Client } from '@solana-tracker/data-api';


            const client = new Client({ apiKey: 'YOUR_API_KEY' });


            const data = await
            client.getPoolChartData('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN',
            '9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2', '1h', 1700000000,
            1700086400);
      x-code-samples:
        - lang: typescript
          label: SDK
          source: >
            import { Client } from '@solana-tracker/data-api';


            const client = new Client({ apiKey: 'YOUR_API_KEY' });


            const data = await
            client.getPoolChartData('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN',
            '9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2', '1h', 1700000000,
            1700086400);
components:
  schemas:
    ChartResponse:
      type: object
      properties:
        oclhv:
          type: array
          items:
            $ref: '#/components/schemas/OHLCV'
    OHLCV:
      type: object
      properties:
        open:
          type: number
        close:
          type: number
        low:
          type: number
        high:
          type: number
        volume:
          type: number
        time:
          type: integer
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Clave API para autenticación

````

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