> ## Documentation Index
> Fetch the complete documentation index at: https://docs.marketdataset.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> MarketDataset.ai — institutional-grade market data for AI trading agents

## 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?

<CardGroup cols={2}>
  <Card title="Forex" icon="chart-line">
    Historical OHLCV for 200+ currency pairs. 5+ years of hourly data for all major pairs.
  </Card>

  <Card title="Crypto" icon="bitcoin">
    OHLCV, funding rates, open interest, and liquidations for top 100 cryptocurrencies.
  </Card>

  <Card title="Derivatives" icon="chart-candlestick">
    Perpetual futures data including funding rates, open interest, and forced liquidations.
  </Card>

  <Card title="Macro" icon="globe">
    Economic calendar events (CPI, NFP, rate decisions) and central bank interest rates for G10 countries.
  </Card>
</CardGroup>

## 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

```bash theme={null}
curl "https://api.marketdataset.ai/forex/prices?pair=EURUSD&interval=hour&limit=10" \
  -H "X-API-KEY: your_api_key"
```

```json theme={null}
{
  "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

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/quickstart">
    Get your API key and make your first request in 2 minutes.
  </Card>

  <Card title="Authentication" icon="key" href="/authentication">
    Learn how to authenticate your API requests.
  </Card>

  <Card title="MCP Server" icon="robot" href="/sdks/mcp-server">
    Use MarketDataset directly in Claude and other AI agents.
  </Card>

  <Card title="Pricing" icon="credit-card" href="/pricing">
    Understand credits and subscription plans.
  </Card>
</CardGroup>
