跳转到主要内容
GET
/
trades
/
{tokenAddress}
/
by-wallet
/
{owner}
SDK
import { Client } from '@solana-tracker/data-api';

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

const data = await client.getUserTokenTrades('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN', 'FbMxP3GVq8TQ36nbYgx4NP9iygMpwAwFWJwW81ioCiSF');
{
  "trades": [
    {
      "tx": "<string>",
      "amount": 123,
      "priceUsd": 123,
      "volume": 123,
      "volumeSol": 123,
      "wallet": "<string>",
      "time": 123,
      "program": "<string>",
      "pools": [
        "<string>"
      ]
    }
  ],
  "nextCursor": 123,
  "hasNextPage": true
}

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.

SDK Example

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

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

const data = await client.getUserTokenTrades('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN', 'FbMxP3GVq8TQ36nbYgx4NP9iygMpwAwFWJwW81ioCiSF');

授权

x-api-key
string
header
必填

用于鉴权的 API Key

路径参数

tokenAddress
string
必填
owner
string
必填

查询参数

cursor
string

分页游标

showMeta
boolean

设为 true 时为 from/to 两端代币补充元数据。

parseJupiter
boolean

设为 true 时将一笔 Jupiter 交换中的多笔转账合并为单条展示。

hideArb
boolean

设为 true 时隐藏套利或与当前代币筛选无关的成交。

sortDirection
enum<string>
默认值:DESC

排序方向:DESC 降序或 ASC 升序。

可用选项:
DESC,
ASC

响应

200 - application/json

Successful response

trades
object[]
nextCursor
integer
hasNextPage
boolean