Skip to main content

What is MarketDataset?

MarketDataset provides a REST API for historical and real-time financial market data optimized for AI agents, LLM pipelines, and quantitative trading systems. Built for developers who need clean, structured data without scraping or cleaning raw feeds.

What data is available?

Forex

Historical OHLCV for 200+ currency pairs. 5+ years of hourly data for all major pairs.

Crypto

OHLCV, funding rates, open interest, and liquidations for top 100 cryptocurrencies.

Derivatives

Perpetual futures data including funding rates, open interest, and forced liquidations.

Macro

Economic calendar events (CPI, NFP, rate decisions) and central bank interest rates for G10 countries.

Key features

  • REST API — simple GET requests, JSON responses, cursor-based pagination
  • AI-native — MCP Server for direct integration with Claude, GPT-4, and other LLM agents
  • High performance — TimescaleDB-backed, sub-500ms response times
  • Pay as you go — credits model, no subscriptions required to start
  • 5+ years history — ideal for backtesting and training ML models

Quick example

curl "https://api.marketdataset.ai/forex/prices?pair=EURUSD&interval=hour&limit=10" \
  -H "X-API-KEY: your_api_key"
{
  "forex_prices": [
    {
      "pair": "EURUSD",
      "interval": "hour",
      "interval_multiplier": 1,
      "open": 1.08421,
      "high": 1.08589,
      "low": 1.08397,
      "close": 1.08534,
      "volume": 12847.0,
      "time": "2024-11-01T15:00:00+00:00"
    }
  ],
  "next_page_url": null,
  "meta": {
    "request_id": "req_abc123",
    "credits_used": 0.005,
    "credits_remaining": 49.995
  }
}

Next steps

Quickstart

Get your API key and make your first request in 2 minutes.

Authentication

Learn how to authenticate your API requests.

MCP Server

Use MarketDataset directly in Claude and other AI agents.

Pricing

Understand credits and subscription plans.