finance

Financial Data

Forex Data

Forex Data is a financial data capability available through Polygon.io, Alpha Vantage on Aweb. Real-time and historical foreign exchange rates and currency pairs. Access it through a single unified API with automatic failover and intelligent routing.

Try Forex DataAPI docs

Best for

Highest quality

Polygon.io, Alpha Vantage

Premium tier

Most affordable

Alpha Vantage

Economy tier

Contract

Max Latency2000ms

Providers (2)

ProviderScoreQualityPricing
Polygon.ioDEFAULT
94premiumstandard
Alpha Vantage
85premiumeconomy

Quick start

Call Forex Data through Alfred — automatic provider selection, failover, and load balancing included.

cURL

curl -X POST https://api.alfred-ai.app/v1/execute \
  -H "Authorization: Bearer $ALFRED_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "capability": "finance.forex",
    "input": { "prompt": "Hello world" }
  }'

TypeScript

import { Alfred } from '@alfred/core';

const alfred = new Alfred({ apiKey: process.env.ALFRED_API_KEY });

// Alfred automatically selects the best provider
const result = await alfred.execute({
  capability: 'finance.forex',
  input: { prompt: 'Hello world' },
});

console.log(result.output);

Orchestration pipeline

import { Alfred } from '@alfred/core';

const alfred = new Alfred({ apiKey: process.env.ALFRED_API_KEY });

// Multi-step pipeline with automatic failover
const result = await alfred.orchestrate({
  steps: [
    { id: 'step1', capability: 'finance.forex', input: { prompt: 'Hello world' } },
    { id: 'step2', capability: 'llm.chat', dependsOn: ['step1'],
      input: { prompt: 'Summarize: $step1.output' } },
  ],
});

Related Financial Data capabilities

Stock Data

finance

Company Fundamentals

finance

Financial News

finance

Market Statistics

finance

Blockchain API

finance

NFT API

finance

Getting started →API reference →All providers →All capabilities →