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
  • GET/{pool_address}?interval={interval}&from={timestamp}&to={timestamp}
  • Query Parameters
  • Supported Intervals
  • Sample Request
  • Response
  1. Data Pipelines
  2. Our Products

OHLCV API

ohlcv data of pools

PreviousLatest Dex Pools APINextWebsocket - Token price and Volume

Last updated 1 month ago

The OHLCV API provides comprehensive candlestick data (Open, High, Low, Close, Volume) for Solana token pools, delivering both real-time and historical market insights. Designed with developers in mind, this API facilitates seamless integration into trading tools, analytics platforms, and diverse financial applications.

With flexible time intervals ranging from minute-by-minute granularity to daily summaries, the OHLCV API empowers precise and tailored market analysis. Whether you’re creating advanced charting solutions, automated trading bots, or performing in-depth market research, this API ensures you always have access to reliable, accurate, and timely market data.

Base URL

GET/{pool_address}?interval={interval}&from={timestamp}&to={timestamp}

Query Parameters

Parameter
Type
Description

interval

string

The interval for OHLCV data (e.g., 1s, 1m, 5m, 15m, 1h, etc.).

pool

string

The pool address to fetch OHLCV data for.

from

number

(Optional) Start timestamp in UNIX format (seconds).

to

number

(Optional) End timestamp in UNIX format (seconds).

Supported Intervals

Shorthand
Interval

1s

1 SECOND

5s

5 SECONDS

15s

15 SECONDS

1m

1 MINUTE

3m

3 MINUTES

5m

5 MINUTES

15m

15 MINUTES

30m

30 MINUTES

1h

1 HOUR

4h

4 HOURS

6h

6 HOURS

8h

8 HOURS

12h

12 HOURS

1d

1 DAY

Sample Request

GET /api/v1/dataset/trade/ohlcv/58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2?interval=1m&from=1736790000&to=1736793600
header:{
x-api-key:<your_api_key>
}
curl --location '<https://graphql.astralane.io/api/v1/dataset/trade/ohlcv/GRhDDqU6bYU9xHam5AcZPvrydp3JsjjJVxgoVXZphqGo?interval=1s>' \\
--header 'x-api-key: <your_api_key>'

Response

[
  {
    "time": 1736791800,
    "open": 177.88,
    "high": 178.12,
    "low": 177.76,
    "close": 178.00,
    "volume": 123.45,
    "volume_usd": 22000.00
  },
  {
    "time": 1736791860,
    "open": 178.00,
    "high": 178.25,
    "low": 177.95,
    "close": 178.15,
    "volume": 150.30,
    "volume_usd": 27000.50
  }
]
🔍
https://graphql.astralane.io/api/v1/dataset/trade/ohlcv