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

                  Pool OHLCV Data

                  GET/v1/svm/pools/ohlc

                  Provides pricing data in the Open/High/Low/Close/Volume (OHCLV) format for DEX pools.

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

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

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

                  • स्वीकृत मान: solana
                  आवश्यक
                  solana
                  amm_pool
                  string

                  Filter by AMM pool address

                    आवश्यक
                    interval
                    string

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

                    • डिफ़ॉल्ट मान: 1d
                    • स्वीकृत मान: 1h, 4h, 1d, 1w
                    1d
                    start_time
                    string

                    UNIX timestamp in seconds or date string (e.g. "2025-01-01T00:00:00Z", "2025-01-01", ...).

                    • डिफ़ॉल्ट मान: 2025-10-20
                    end_time
                    string

                    UNIX timestamp in seconds or date string (e.g. "2025-01-01T00:00:00Z", "2025-01-01", ...).

                    • डिफ़ॉल्ट मान: 2050-01-01
                    limit
                    integer

                    Number of items* returned in a single request.
                    *Plan restricted.

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

                    Page number to fetch.
                    Empty data array signifies end of results.

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

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

                    स्थितिDescription
                    200

                    Successful Response

                    400

                    Client side error

                    401

                    Authentication failed

                    403

                    Forbidden

                    404

                    Not found

                    500

                    Server side error

                    ⁠GitHub पर संपादित करें⁠

                    Supported DEXsLiquidity Pools
                    इस एंडपॉइंट का परीक्षण करें

                    1curl --request GET \2  --url 'https://token-api.thegraph.com/v1/svm/pools/ohlc?network=solana&amm_pool=AmmpSnW5xVeKHTAU9fMjyKEMPgrzmUj3ah5vgvHhAB5J&interval=1d&start_time=2025-10-20&end_time=2050-01-01&limit=10&page=1' \3  --header 'Authorization: Bearer {token}'

                    1{2  "data": [3    {4      "datetime": "2025-10-16 00:00:00",5      "amm": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA",6      "amm_pool": "AmmpSnW5xVeKHTAU9fMjyKEMPgrzmUj3ah5vgvHhAB5J",7      "token0": "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump",8      "token0_decimals": 6,9      "token1": "So11111111111111111111111111111111111111112",10      "token1_decimals": 9,11      "open": 0.0020385820805914096,12      "high": 0.002037622484039942,13      "low": 0.002029088299722426,14      "close": 0.0020285665581652053,15      "volume": 0.14567917800000002,16      "uaw": 8,17      "transactions": 818    }19  ]20}
                    The GraphStatusTestnetBrand AssetsForumSecurityPrivacy PolicyTerms of Service