跳转到主要内容
GET
/
price
/
history
SDK
import { Client } from '@solana-tracker/data-api';

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

const data = await client.getPriceHistory('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN');
{
  "current": 5.933132498211121,
  "1d": 6.295227385180826,
  "3d": 7.7397017357870705,
  "5d": 7.968063197832061,
  "7d": 7.739212922516644,
  "14d": 7.596158185278047,
  "30d": 8.785669661012452
}

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.getPriceHistory('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN');

授权

x-api-key
string
header
必填

用于鉴权的 API Key

查询参数

token
string
必填

代币地址

响应

200 - application/json

Successful response

current
number
3d
number
5d
number
7d
number
14d
number
30d
number