> ## 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 Pool Events

> **Obsoleto.** Usa [`GET /stats/{token}/{pool}`](/es/data-api/stats/get-token-pool-stats) en su lugar. Con el SDK, usa `client.getPoolStats(token, pool)`. El endpoint de estadísticas devuelve resultados calculados en JSON, sin necesidad de decodificar eventos binarios ni ejecutar `processEventsAsync`.

Eventos binarios para un token y pool concretos.

## SDK Example

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

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

// Deprecated: use client.getPoolStats(token, pool) instead.
const data = await client.getPoolEvents('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN', '9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2');

const stats = await processEventsAsync(data);
```


## OpenAPI

````yaml /es/data-api/openapi.json get /events/{tokenAddress}/{poolAddress}
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:
  /events/{tokenAddress}/{poolAddress}:
    get:
      tags:
        - Events
      summary: Get Pool Events
      description: >-
        **Obsoleto.** Usa [`GET
        /stats/{token}/{pool}`](/es/data-api/stats/get-token-pool-stats) en su
        lugar. Con el SDK, usa `client.getPoolStats(token, pool)`. El endpoint
        de estadísticas devuelve resultados calculados en JSON, sin necesidad de
        decodificar eventos binarios ni ejecutar `processEventsAsync`.


        Eventos binarios para un token y pool concretos.
      parameters:
        - name: tokenAddress
          in: path
          required: true
          schema:
            type: string
        - name: poolAddress
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: >-
            Returns binary data (application/octet-stream) that can be decoded
            into an array of events
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
      deprecated: true
      x-codeSamples:
        - lang: typescript
          label: SDK
          source: >
            import { Client, processEventsAsync } from
            '@solana-tracker/data-api';


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


            // Deprecated: use client.getPoolStats(token, pool) instead.

            const data = await
            client.getPoolEvents('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN',
            '9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2');


            const stats = await processEventsAsync(data);
      x-code-samples:
        - lang: typescript
          label: SDK
          source: >
            import { Client, processEventsAsync } from
            '@solana-tracker/data-api';


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


            // Deprecated: use client.getPoolStats(token, pool) instead.

            const data = await
            client.getPoolEvents('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN',
            '9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2');


            const stats = await processEventsAsync(data);
components:
  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.