Skip to main content

Documentation

Ring APIs

Structured reference
TOC available

Overview

Ring APIs

Welcome to the Ring API documentation. Ring provides several APIs and data sources to help developers integrate with and build on top of the Ring protocol.

Available APIs

Subgraph API

The Ring Subgraph provides a GraphQL API for querying historical and real-time data from the Ring protocol.

Routing API

The Ring Routing API provides optimized trade routes and quotes for swaps.

  • Smart Order Routing - Find the best prices across multiple pools
  • Gas Optimization - Routes optimized for gas efficiency
  • Multi-hop Support - Complex routing across token pairs

Price APIs

Get real-time and historical price data for tokens in Ring-related markets and integrations.

  • Current Prices - Real-time token prices
  • Historical Data - Price charts and historical trends
  • Pool Information - Liquidity and volume data

Getting Started

For Developers

If you're building applications that need to:

  • Query historical trading data → Use the Subgraph API
  • Get optimal swap routes → Use the Routing API
  • Display token prices → Use the Price APIs

For Data Analysis

The Subgraph API is perfect for:

  • Analytics dashboards
  • Trading strategy research
  • Protocol metrics and insights
  • DeFi research and analysis

Rate Limits and Usage

  • Subgraph API: Generous rate limits via The Graph
  • Routing API: Production-ready with caching
  • Price APIs: Real-time updates with historical data

Support and Resources

  • Discord: Join the Ring developer community
  • GitHub: Explore code examples and integrations
  • Documentation: Comprehensive guides and references

Ready to start building? Choose the API that fits your needs from the navigation menu.