finance

Financial Data

Stock Data

Stock Data is a financial data capability available through IEX Cloud, Polygon.io, Alpha Vantage and 1 more on Aweb. Real-time and historical stock market data. Access it through a single unified API with automatic failover and intelligent routing.

Try Stock DataAPI docs

Best for

Highest quality

IEX Cloud, Polygon.io

Premium tier

Most affordable

Alpha Vantage

Economy tier

Contract

Max Latency2000ms

Providers (4)

ProviderScoreQualityPricing
IEX Cloud
80premiumstandard
Polygon.ioDEFAULT
97premiumstandard
Alpha Vantage
85premiumeconomy
Financial Modeling Prep
82premiumstandard

Quick start

Call Stock 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.stocks",
    "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.stocks',
  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.stocks', input: { prompt: 'Hello world' } },
    { id: 'step2', capability: 'llm.chat', dependsOn: ['step1'],
      input: { prompt: 'Summarize: $step1.output' } },
  ],
});

Related Financial Data capabilities

Company Fundamentals

finance

Financial News

finance

Market Statistics

finance

Blockchain API

finance

NFT API

finance

Options Data

finance

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