Foresight
Back to DashboardExplore 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}/historicalExample Request
GET /api/v1/currency/rates/USD/EUR/historicalData 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-weekExample Request
GET /api/v1/graph/USD/EUR/last-weekExchange Rate Graph (Last Month)
Generate a graph of exchange rates for the last month
URL
GET /api/v1/graph/{from_currency}/{to_currency}/last-monthExample Request
GET /api/v1/graph/USD/EUR/last-monthExchange 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-monthsExample Request
GET /api/v1/graph/USD/EUR/last-6-monthsExchange Rate Graph (Last Year)
Generate a graph of exchange rates for the last year
URL
GET /api/v1/graph/{from_currency}/{to_currency}/last-yearExample Request
GET /api/v1/graph/USD/EUR/last-yearExchange 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-yearsExample Request
GET /api/v1/graph/USD/EUR/last-5-yearsAnalytical 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"}