LogoLogo
HomeLaunch app
  • About Ekubo
    • 👋Introduction
    • 🔑Features
  • User Guides
    • 🌊Add liquidity
    • 🔄Swap
    • ⌛Dollar-cost average orders
    • 🏩Governance
      • EKUBO token
    • Incentives
      • 🌻Starknet DeFi Spring
  • Integration Guides
    • 🔌Extensions
      • Oracle
    • 🔄Swapping
    • 💸"Till" pattern
    • 📚Reference
      • Core Interfaces
      • Contract addresses
      • Reading pool price
      • Error Codes
      • Ekubo API
      • Audits
      • Key concepts
      • Math 1-pager
      • Frequently Asked Questions (FAQ)
  • Links
    • Home
    • Launch app
    • Discord
    • Twitter
    • Telegram
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Integration Guides
  2. Reference

Ekubo API

The API that powers Ekubo's interface

PreviousError CodesNextAudits

Last updated 3 months ago

Was this helpful?

Our API is in alpha and may undergo breaking changes without notice. to ask questions or get support.

Our API is found at the following endpoints, for Starknet mainnet and sepolia respectively:

  • https://starknet-mainnet-api.ekubo.org

  • https://starknet-sepolia-api.ekubo.org

The endpoints for Ethereum mainnet and sepolia are:

  • https://eth-mainnet-api.ekubo.org

  • https://eth-sepolia-api.ekubo.org

API Architecture

Our API functionality is based entirely on querying the Postgres schema kept up-to-date by the open source indexer repository (). You can replicate almost all of the API functionality by simply running your own instance of the indexer and querying the resulting Postgres database. Some of the functionality is even conveniently contained in materialized views.

There are multiple layers of caching with varying TTL between the database and the client. If you have specific latency requirements or need to make a large number of requests per second, it's best to run your own indexer.

Rate limiting

We have a rate limiting web application firewall applied to the API. If you would like to make calls in excess of the limit, please reach out on Discord to get a key.

Endpoints

Our endpoints are documented via OpenAPI 3.1 at the /openapi.json endpoint. For example, for Starknet mainnet:

This means you can use it with any REST API explorer, e.g. the or postman.

📚
Join the Discord
Starknet
https://mainnet-api.ekubo.org/openapi.json
example swagger explorer