REST API Reference

Most of the API endpoints provided via GraphQL API.

We use REST API for price feed endpoints. We provide most accurate spot prices based on the latest trades. We use special algorithms to provide the most relevant prices and take into account trade volume, time and TVL.

There are two endpoints:

  • basic without authentication,

  • advance with API Key.

Both endpoints are free for non-commercial use (except of reselling data!), the only difference that basic endpoint has 1 req/s limit and does not allow CORS requests.

Basic price feed endpoint

GET https://api.redoubt.online/price/v1/jetton/{address}

Response:

{ "price_ton": 0.5279795305333319, "price_usd": 1.0110604365349742, "update_time": "2023-09-04 06:46:05" }

price_ton and price_usd are prices of 1 unit of jetton in terms of TON and USD. update_time is a timestamp of spot price calculation (i.e. last trade event)

Advanced price feed endpoint (w/o rate limits)

GET https://api.redoubt.online/price-auth/v1/jetton/{address}

You have to add X-Price-API-Key HTTP header to access this endpoint. To get API key follow this steps:

  1. Type /price_feed

  2. You will receive the API key. Note: API key for price feed is not the same as GraphQL API key!

Last updated