Explore Our Microservices

This API provides currency exchange rates, predictions, volatility analysis, and other financial data. It follows the ADAGE 3.0 data model for standardized financial data exchange.

Backend URL: https://foresight-backend-v2.devkitty.pro

Data Collection

Latest Exchange Rate

Retrieves the current exchange rate between two currencies

URL

GET /api/v1/currency/rates/{base}/{target}/

Example Request

GET /api/v1/currency/latest/rate/USD/EUR/

Historical Exchange Rates

Retrieve historical exchange rates for a currency pair

URL

GET /api/v1/currency/rates/{from_currency}/{to_currency}/historical

Example Request

GET /api/v1/currency/rates/USD/EUR/historical

Data Visualization

Exchange Rate Graph (Last Week)

Generate a graph of exchange rates for the last week

URL

GET /api/v1/graph/{from_currency}/{to_currency}/last-week

Example Request

GET /api/v1/graph/USD/EUR/last-week

Exchange Rate Graph (Last Month)

Generate a graph of exchange rates for the last month

URL

GET /api/v1/graph/{from_currency}/{to_currency}/last-month

Example Request

GET /api/v1/graph/USD/EUR/last-month

Exchange Rate Graph (Last 6 Months)

Generate a graph of exchange rates for the last 6 months

URL

GET /api/v1/graph/{from_currency}/{to_currency}/last-6-months

Example Request

GET /api/v1/graph/USD/EUR/last-6-months

Exchange Rate Graph (Last Year)

Generate a graph of exchange rates for the last year

URL

GET /api/v1/graph/{from_currency}/{to_currency}/last-year

Example Request

GET /api/v1/graph/USD/EUR/last-year

Exchange Rate Graph (Last 5 Years)

Generate a graph of exchange rates for the last 5 years

URL

GET /api/v1/graph/{from_currency}/{to_currency}/last-5-years

Example Request

GET /api/v1/graph/USD/EUR/last-5-years

Analytical Model

Volatility Analysis

Analyze exchange rate volatility between two currencies

URL

GET /api/v1/analytics/volatility/{base}/{target}/

Example Request

GET /api/v1/analytics/volatility/USD/EUR/

Alert System

Exchange Rate Alert

Register an alert for when an exchange rate crosses a threshold

URL

POST /api/v1/alerts/register/ Request body: {"base", "target", "alert_type", "threshold", "email"}

Example Request

POST /api/v1/alerts/register/ Request body: {"base": "USD", "target": "EUR", "alert_type": "above", "threshold": 0.85, "email": "user@example.com"}

Predicted Exchange Rate Alert

Register an alert for when a predicted exchange rate crosses a threshold

URL

POST /api/v1/alerts/register/ Request body: {"base", "target", "alert_type", "threshold", "email"}

Example Request

POST /api/v1/alerts/register/ Request body: {"base": "USD", "target": "EUR", "alert_type": "above", "threshold": 0.85, "email": "user@example.com"}