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

# Snapshot of tokens close to migrating

> Returns the latest snapshot of un-migrated tokens that traded above a price floor (1.2141161767500444e-7 SOL) within the last 10 minutes, sorted by `last_avg_price` descending. Capped at 100 entries.

The snapshot is computed by a periodic ClickHouse query (every ~5s) on the history service and served from an in-memory cache — request-path latency is sub-millisecond. There is no streaming-side state and no WebSocket dependency for this feed; clients should poll this endpoint at their preferred cadence (the reference UI polls every 5s, matching the cache refresh interval).

Definition: a token is "migrating" iff it has a row in `deploys`, no row in `migrations`, and its most recent `ohlcv_1s.close` in the last 10 minutes is above the floor. There is no deploy-age TTL — a token deployed any time ago that is still trading qualifies.




## OpenAPI

````yaml openapi-spec/history.yaml get /api/sol/tokens/migrating
openapi: 3.0.3
info:
  title: Raze Database API
  description: >
    Paid subscription API for Solana transaction data and history.


    Also hosts write utilities (`/utils/sol/*`): token launch, transfer, burn,

    consolidate, fees claim/config, and agent initialize — previously on

    `router.raze.bot`. Mixer/distribute removed 2026-07-25.


    ## Batch Requests

    All endpoints with path parameters (mint, signer, address, tokenMint,
    ownerAddress) support batch queries

    via comma-separated values. For example:
    `/api/sol/trades/mint/mint1,mint2,mint3?limit=50`


    - Maximum 10 values per batch request

    - Each value must be a valid address (>= 32 characters)

    - Single values behave identically to non-batch requests

    - Batch response format: `{ "success": true, "results": { "value1": {...},
    "value2": {...} }, "count": N, "timestamp": "..." }`

    - Each key in `results` contains the full single-entity response

    - Queries run in parallel for maximum performance
  version: 1.0.0
servers:
  - url: https://api.raze.bot
    description: >-
      Raze global History API — GeoDNS routes to the nearest region
      automatically
security:
  - ApiKeyAuth: []
paths:
  /api/sol/tokens/migrating:
    get:
      summary: Snapshot of tokens close to migrating
      description: >
        Returns the latest snapshot of un-migrated tokens that traded above a
        price floor (1.2141161767500444e-7 SOL) within the last 10 minutes,
        sorted by `last_avg_price` descending. Capped at 100 entries.


        The snapshot is computed by a periodic ClickHouse query (every ~5s) on
        the history service and served from an in-memory cache — request-path
        latency is sub-millisecond. There is no streaming-side state and no
        WebSocket dependency for this feed; clients should poll this endpoint at
        their preferred cadence (the reference UI polls every 5s, matching the
        cache refresh interval).


        Definition: a token is "migrating" iff it has a row in `deploys`, no row
        in `migrations`, and its most recent `ohlcv_1s.close` in the last 10
        minutes is above the floor. There is no deploy-age TTL — a token
        deployed any time ago that is still trading qualifies.
      operationId: getMigratingTokens
      parameters:
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
        - name: offset
          in: query
          schema:
            type: integer
            minimum: 0
            default: 0
          description: Number of records to skip for pagination
        - name: platform
          in: query
          schema:
            type: string
          description: >-
            Filter by platform(s). Supports comma-separated values (e.g.,
            "Pumpfun,Meteora"). Filtering is applied in-memory against the
            snapshot.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MigratingResponse'
components:
  schemas:
    MigratingResponse:
      type: object
      description: |
        Snapshot of un-migrated tokens that traded above the price floor in the
        last 10 minutes, sorted by `last_avg_price` desc, capped at 100 entries.
        Served from history's in-memory cache, refreshed every ~5 seconds by a
        ClickHouse query. Poll this endpoint for live updates — there is no
        WebSocket event for this feed.
      properties:
        success:
          type: boolean
        data:
          type: array
          items:
            type: object
            properties:
              mint:
                type: string
              signer:
                type: string
              platform:
                type: string
              name:
                type: string
              symbol:
                type: string
              uri:
                type: string
              slot:
                type: integer
              creator_buy_sol:
                type: number
                nullable: true
              creator_buy_tokens:
                type: number
                nullable: true
              creator_buy_price:
                type: number
                nullable: true
              last_avg_price:
                type: number
                description: Most recent trade's avgPrice in SOL.
              deploy_time_ms:
                type: integer
                description: Deploy time in unix milliseconds.
              last_trade_time_ms:
                type: integer
                description: Most recent trade time in unix milliseconds.
              isMigrating:
                type: boolean
        count:
          type: integer
        total:
          type: integer
          description: Total records matching the platform filter (before pagination).
        totalLive:
          type: integer
          description: >-
            Total records in the cached snapshot after filtering (i.e. the
            post-filter total for this request), not a cross-platform count.
        limit:
          type: integer
        offset:
          type: integer
        hasMore:
          type: boolean
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: query
      name: apiKey

````