Docs
La Recherche⌘ K
  • Accueil
  • À propos de The Graph
  • Réseaux pris en charge
  • Contrats du Protocole
  • Subgraphs
    • Substreams
      • Token API
        • Hypergraph
          • AI Suite
            • Indexing
              • Resources
                Token API > SVM Endpoints

                Solana OHLCV prices (SOL) by Pool

                GET/ohlc/pools/svm/{pool}

                Provides pricing data in native SOL in the Open/High/Low/Close/Volume (OHCLV) format.

                Path Parameters

                ParameterDescriptionValue
                pool
                string

                Filter by amm pool address

                  Required

                  Paramètres de requête

                  ParameterDescriptionValue
                  network_id
                  string

                  The Graph Network ID for SVM networks https://thegraph.com/networks

                  • Default value: solana
                  • Accepted values: solana
                  Required
                  solana
                  interval

                  The interval for which to aggregate price data (hourly, 4-hours, daily or weekly).

                    startTime
                    integer

                    UNIX timestamp in seconds.

                    • Default value: 1735689600
                    • Minimum value: -9007199254740991
                    • Maximum value: 9007199254740991
                    endTime
                    integer

                    UNIX timestamp in seconds.

                    • Default value: 9999999999
                    • Minimum value: -9007199254740991
                    • Maximum value: 9007199254740991
                    limit
                    integer

                    The maximum number of items returned in a single request.

                    • Default value: 10
                    • Minimum value: 1
                    • Maximum value: 1000
                    page
                    integer

                    The page number of the results to return.

                    • Default value: 1
                    • Minimum value: 1
                    • Maximum value: 767465558638

                    Potential Responses

                    StatusDescription
                    200Successful Response
                    400Client side error
                    401Authentication failed
                    403Forbidden
                    404Not found
                    500Server side error
                    ⁠Edit on GitHub⁠

                    Swap EventsGet supported networks of the API
                    Test this endpoint

                    1curl --request GET \2  --url 'https://token-api.thegraph.com/ohlc/pools/svm/{pool}?network_id=solana&startTime=1735689600&endTime=9999999999&limit=10&page=1' \3  --header 'Authorization: Bearer {token}'

                    1{2  "data": [3    {4      "datetime": "2025-09-15 00:00:00",5      "amm": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA",6      "pool": "AmmpSnW5xVeKHTAU9fMjyKEMPgrzmUj3ah5vgvHhAB5J",7      "token0": "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump",8      "token0_decimals": 6,9      "token1": "So11111111111111111111111111111111111111112",10      "token1_decimals": 9,11      "open": 0.003648785031942177,12      "high": 0.0036724218787403977,13      "low": 0.0034598947533987442,14      "close": 0.0035191405556241413,15      "volume": 3.521022449,16      "uaw": 76,17      "transactions": 15918    }19  ]20}
                    The GraphStatusTestnetActifs de la MarqueForumSécuritéPolitique de confidentialitéConditions d'utilisation