Introduction

Welcome! Here we discuss how our API works and how can you integrate the API into your application to get access to all the DeFi data we have. If you want a general overview of SimpleFi, you can check out this link, and if you want to learn more about how you can integrate with Simplefi’s Subgraphs, click here.

Getting Started

Authentication

The use of our API requires authentication through and Api-key, which for the time being is free.

To create your own personal key, complete our online form here.

Once you’ve obtained an Api-key, you must attach it to the headers of each request under the header Authorization.

fetch(url, {
  headers: {
    Authorization: Bearer <my-api-key>
  }
})

Rate limiting

Each Api-key has a personal usage of 100,000 requests a month.

Each key is also allowed 45 calls per minute.

Errors

Error Code Code Definition
200s Success
400s User Error
500s Service Error

Core Services

Pricing Data

Our pricing service provides historical prices for different types of tokens: