Docs
खोज⌘ K
  • Home
  • The Graph के बारे में
  • समर्थित नेटवर्क
  • Protocol Contracts
  • सबग्राफ
    • सबस्ट्रीम
      • टोकन API
        • Hypergraph
          • AI Suite
            • Overview
            • Indexer टूलिंग
              • GraphTally Guide
              • Supported Network Requirements
              • Chain Integration Process Overview
              • नई श्रृंखला एकीकरण
              • संसाधन
                टोकन 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.

                पथ पैरामीटर

                पैरामीटरDescriptionमान
                pool
                string

                Filter by amm pool address

                  आवश्यक

                  क्वेरी पैरामीटर

                  पैरामीटरDescriptionमान
                  network_id
                  string

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

                  • डिफ़ॉल्ट मान: solana
                  • स्वीकृत मान: solana
                  आवश्यक
                  solana
                  interval

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

                    startTime
                    integer

                    UNIX timestamp in seconds.

                    • डिफ़ॉल्ट मान: 1735689600
                    • न्यूनतम मान: -9007199254740991
                    • अधिकतम मान : 9007199254740991
                    endTime
                    integer

                    UNIX timestamp in seconds.

                    • डिफ़ॉल्ट मान: 9999999999
                    • न्यूनतम मान: -9007199254740991
                    • अधिकतम मान : 9007199254740991
                    limit
                    integer

                    The maximum number of items returned in a single request.

                    • डिफ़ॉल्ट मान: 10
                    • न्यूनतम मान: 1
                    • अधिकतम मान : 1000
                    page
                    integer

                    The page number of the results to return.

                    • डिफ़ॉल्ट मान: 1
                    • न्यूनतम मान: 1
                    • अधिकतम मान : 767465558638

                    संभावित प्रतिक्रियाएँ

                    स्थितिDescription
                    200Successful Response
                    400Client side error
                    401Authentication failed
                    403Forbidden
                    404Not found
                    500Server side error
                    ⁠GitHub पर संपादित करें⁠

                    Swap EventsGet supported networks of the API
                    इस एंडपॉइंट का परीक्षण करें

                    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 GraphStatusTestnetBrand AssetsForumSecurityPrivacy PolicyTerms of Service