Skip to main content

Overview

Express.js API with Redis caching for fetching token prices from on-chain oracles. Base URL: http://localhost:3001/api

Health Check

Response:

Get All Prices

Query Parameters: Response:

Get Price by Symbol

Example:
Response:

Refresh Prices

Forces a cache refresh for all token prices.

Configuration

Environment Variables

Supported Tokens


Error Handling

HTTP status codes:
  • 200 - Success
  • 400 - Bad request
  • 404 - Not found
  • 500 - Server error