> ## 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.

# Solana KOL 交易 API：最新现货成交

> 获取 KOL 名单内钱包的最新现货 DEX 交易，可按最低美元成交量筛选，有身份信息时随交易一起返回。

返回共享 KOL 名单内钱包的最新现货 DEX 交易，美元成交量绝对值不低于 `minVolume`。有身份信息时，每笔交易都包含 `identity`。

## SDK Example

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

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

const data = await client.getKolTrades({ limit: 100, showMeta: true });
```


## OpenAPI

````yaml /cn/data-api/whale-kol.json get /trades/kols
openapi: 3.1.0
info:
  title: Solana Tracker 巨鲸与 KOL 交易 API
  version: 1.0.0
  description: >-
    提供最新大额（巨鲸）现货交易和关键意见领袖（KOL）交易的 REST 数据流。


    交易对象的结构与 `/trades/:token` 一致，并可附带 KOL `identity`。巨鲸接口默认 `minVolume=1000`，KOL
    接口默认 `minVolume=0`。


    时间戳为 Unix 毫秒。除非另有说明，金额单位均为美元。
  contact:
    email: contact@solanatracker.io
  license:
    name: Proprietary
    url: https://www.solanatracker.io/terms
servers:
  - url: https://data.solanatracker.io
    description: 生产环境（主网）
  - url: https://data.solanatracker.io
    description: 生产环境（数据）
security:
  - apiKey: []
tags:
  - name: Whale Trades
    description: 最新的大额现货 DEX 交易。
  - name: KOL Trades
    description: 共享 KOL 名单内钱包的最新现货 DEX 交易。
paths:
  /trades/kols:
    get:
      tags:
        - KOL Trades
      summary: Latest KOL spot trades
      description: >-
        返回共享 KOL 名单内钱包的最新现货 DEX 交易，美元成交量绝对值不低于 `minVolume`。有身份信息时，每笔交易都包含
        `identity`。
      operationId: getKolTrades
      parameters:
        - $ref: '#/components/parameters/KolMinVolume'
        - $ref: '#/components/parameters/Cursor'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/ShowMeta'
        - $ref: '#/components/parameters/HideArb'
        - $ref: '#/components/parameters/SortDirection'
      responses:
        '200':
          $ref: '#/components/responses/TradesSuccess'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/ServerError'
      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.getKolTrades({ limit: 100, showMeta: true
            });
      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.getKolTrades({ limit: 100, showMeta: true
            });
components:
  parameters:
    KolMinVolume:
      name: minVolume
      in: query
      required: false
      description: >-
        KOL 交易的美元成交量绝对值下限。传 `0` 或省略此参数可获取所有符合条件的 KOL
        交易。可选值：`0`、`1000`、`2500`、`5000`、`10000`。默认值 `0`。
      schema:
        type: number
        enum:
          - 0
          - 1000
          - 2500
          - 5000
          - 10000
        default: 0
    Cursor:
      name: cursor
      in: query
      required: false
      description: >-
        分页游标。建议使用上一次响应返回的不透明 `nextCursor`（由 `time`/`tx`/`token`/`side`/`wallet`
        组成的 JSON 经 base64url 编码）。也接受原始毫秒时间戳。
      schema:
        type: string
    Limit:
      name: limit
      in: query
      required: false
      description: 每页条数。默认 `250`，最大 `500`。
      schema:
        type: integer
        minimum: 1
        maximum: 500
        default: 250
    ShowMeta:
      name: showMeta
      in: query
      required: false
      description: 为 true 时，附带 `meta.from` / `meta.to` 代币元数据和历史价格。
      schema:
        type: boolean
        default: false
    HideArb:
      name: hideArb
      in: query
      required: false
      description: 仅用于单代币 KOL 接口。只保留 from 或 to 与路径中代币一致的记录。
      schema:
        type: boolean
        default: false
    SortDirection:
      name: sortDirection
      in: query
      required: false
      description: 仅支持 `DESC`。
      schema:
        type: string
        enum:
          - DESC
        default: DESC
  responses:
    TradesSuccess:
      description: 最新现货交易
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TradesResponse'
    BadRequest:
      description: 请求无效（例如 cursor 或 minVolume 不合法）
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            invalidMinVolume:
              value:
                error: 'Invalid minVolume. Allowed: 1000, 2500, 5000, 10000'
            invalidCursor:
              value:
                error: Invalid cursor
    Unauthorized:
      description: API 密钥缺失或无效
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServerError:
      description: 服务器错误
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    TradesResponse:
      type: object
      required:
        - trades
        - nextCursor
        - hasNextPage
        - sortDirection
      properties:
        trades:
          type: array
          items:
            $ref: '#/components/schemas/Trade'
        nextCursor:
          type:
            - string
            - 'null'
          description: 下一页的不透明 base64url 游标
        hasNextPage:
          type: boolean
        sortDirection:
          type: string
          enum:
            - DESC
        minVolume:
          type: number
          enum:
            - 1000
            - 2500
            - 5000
            - 10000
          description: 回显的请求筛选条件
      example:
        trades:
          - tx: >-
              2fWJCNojUK7SyLY1atumdq1tPyUZSS9ENvH6XmdhozvkbZEjqF3aeh2APc93QNBCE4L1yDZCB5a3wp4fS7KCRc7H
            amount: 13720522.130153
            priceUsd: 0.0001106240879205581
            volume: 1517.8202464420085
            volumeSol: 20.202379779999998
            type: buy
            wallet: 9jyqFiLnruggwNn4EQwBNFXwpbLM9hrA4hV59ytyAVVz
            time: 1786471285000
            program: axiom-flash
            pools: []
            identity:
              name: Nach
              twitter: '@NachSOL'
              avatar: >-
                https://kol-avatar.solanatracker.io/9jyqFiLnruggwNn4EQwBNFXwpbLM9hrA4hV59ytyAVVz
        nextCursor: eyJ0aW1lIjoxNzg2NDcxMTg1MDAwfQ
        hasNextPage: true
        sortDirection: DESC
        minVolume: 1000
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
    Trade:
      type: object
      required:
        - tx
        - amount
        - priceUsd
        - volume
        - volumeSol
        - type
        - wallet
        - time
        - program
        - pools
      properties:
        tx:
          type: string
          description: 交易签名
        amount:
          type: number
          description: 主代币数量
        priceUsd:
          type:
            - number
            - 'null'
        volume:
          type: number
          description: 美元成交量，不低于 `$minVolume`
        volumeSol:
          type: number
        type:
          type: string
          enum:
            - buy
            - sell
        wallet:
          type: string
        time:
          type: integer
          description: Unix 时间戳（毫秒）
        program:
          type: string
        pools:
          type: array
          items:
            type: string
        identity:
          $ref: '#/components/schemas/Identity'
        meta:
          type: object
          description: '`showMeta=true` 时返回'
          properties:
            from:
              $ref: '#/components/schemas/TokenMetaSide'
            to:
              $ref: '#/components/schemas/TokenMetaSide'
    Identity:
      type: object
      description: 钱包在共享 KOL 名单内时返回。
      properties:
        name:
          type:
            - string
            - 'null'
        twitter:
          type:
            - string
            - 'null'
        avatar:
          type: string
    TokenMetaSide:
      type: object
      properties:
        name:
          type:
            - string
            - 'null'
        symbol:
          type:
            - string
            - 'null'
        image:
          type:
            - string
            - 'null'
        decimals:
          type:
            - integer
            - 'null'
        amount:
          type: number
        address:
          type: string
        priceUsd:
          type:
            - number
            - 'null'
      additionalProperties: true
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````

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