Astralane
  • Welcome to Astralane
  • 🚅Low Latency
    • Quickstart
    • Endpoints and Configs
    • Submit Transactions
  • 🔍Data Pipelines
    • Overview
    • Our Products
      • Authentication
      • Dex Pools API
        • Latest Dex Pools API
      • OHLCV API
      • Websocket - Token price and Volume
      • Trade Data - Dex trades
      • PnL Indexer
      • Historical Token Portfolio
      • Top 100 Token Holders
      • Token Price API
      • Historical Token Price API
      • Profitable Wallets
      • Wallet PnL API
      • Trasaction Indexer
  • Japanese Docs
    • 🌌 Astralane ドキュメント
      • 低遅延 -クイックスタート
      • 🚅 エンドポイントと設定
      • トランザクションの送信
  • Mandarin Docs
    • 🌌 欢迎来到 Astralane
      • 低延迟快速入门
      • 🚅 端点和配置
      • 提交交易
Powered by GitBook
On this page
  • Query params
  • Sample request
  • Response
  1. Data Pipelines
  2. Our Products

Historical Token Price API

Get latest price of SOL and SPL tokens

The Price API allows users to fetch historical token prices in both SOL and USD using indexed on-chain data.

Base URL: https://graphql.astralane.io

Endpoint: GET /api/v1/dataset/price/history?token=<token_address>&from=<start_timestamp>&to=<end_timestamp>

  • token: The SPL token mint address (or "SOL" for native SOL).

  • from: Start of the time range (Unix timestamp in seconds).

  • to: End of the time range (Unix timestamp in seconds).

Note: Supports a maximum time range of 100 minutes per request.

Description: Returns historical price data for the specified token within the defined time window, with prices denominated in both SOL and USD. Ideal for charting, analytics, and time-series analysis.

Query params

Parameter
Type
Required
Description

token

string

✅ Yes

The token parameter accepts the mint address of the SPL token (or "SOL" for native Solana) whose historical prices you want to retrieve.

from

integer

✅ Yes

Unixtimestamp

to

integer

✅Yes

Unixtimestamp

Sample request

GET /api/v1/dataset/price/history?token=So11111111111111111111111111111111111111112&from=1739577600&to=1739577620

Response


[
    {
        "time": 1739577600,
        "value": 199.42621602747087
    }
]

PreviousToken Price APINextProfitable Wallets

Last updated 1 month ago

🔍