Saturn Documentation
Launch App
  • Saturn
  • Traders
    • Trading in Saturn
    • How to Swap
    • How Saturn Protects Your Trades from MEV Risks
  • Liquidity Providers
    • Open a position in a Liquidity Pool
    • Managing your Portfolio on Saturn
  • Token Creators
    • How to Create a Pool on Saturn
  • Builders
    • Saturn API
      • Pool API
        • Initialize pool
        • Add Shards
        • Open position
        • Increase Liquidity
        • Remove Liquidity
        • Swap
        • Swap Quotes
        • Boost Transaction
        • Wallet
      • Indexer API
        • Collections
        • Pools
        • Prices
        • Positions
        • Transactions
        • Charts
        • Stats
    • Liquidity Pool SDK
  • Saturn V1
    • Overview
    • How-To-Links
      • Setting up Trading Account
        • Withdrawing from Trading account
      • Swap
      • Orderbook
        • Your Profile
          • Trade History
        • How to place a sell order
        • How to place a buy order
        • Positions
      • Collect
      • Charts
      • Tutorial videos
        • Setting up a Trading Account (v3) and preparing for Rings Airdrops
        • Trading on Saturn
    • FAQs
      • What are Satoshi's, Rare SATs, and Rings?
        • More on Rare SATs
      • What is a UTXO
      • What is a PSBT
      • Why are there batch sizes?
      • Compatible Wallets
      • Why is my Available balance different than my Total balance?
Powered by GitBook
On this page
  1. Builders
  2. Saturn API
  3. Indexer API

Charts

PreviousTransactionsNextStats

Last updated 1 month ago

get

Fetch OHLC (candlestick) data for the requested pair

Query parameters
granularitystring ยท enumRequiredPossible values:
startDatestringRequired
endDatestringRequired
token0stringRequired
token1stringRequired
Responses
200
OHLC Data
application/json
400
Bad request
get
GET /ohlc HTTP/1.1
Host: 127.0.0.1:3000
Accept: */*
[
  {
    "id": 1,
    "pair": {
      "token0Id": "1234:5678",
      "token1Id": "1234:5678"
    },
    "openPrice": "text",
    "highPrice": "text",
    "lowPrice": "text",
    "closePrice": "text",
    "volume": "text",
    "feeToken0": "text",
    "feeToken1": "text",
    "startTimestamp": "2025-06-10T22:46:13.825Z",
    "endTimestamp": "2025-06-10T22:46:13.825Z",
    "granularity": "1m",
    "transactions": 1,
    "createdAt": "2025-06-10T22:46:13.825Z",
    "updatedAt": "2025-06-10T22:46:13.825Z"
  }
]