Skip to main content

Step 1: Get your API key

  1. Sign in at marketdataset.ai/dashboard
  2. Navigate to the Overview section
  3. Click Create API Key, enter a name, and copy your key
Your API key is only shown once. Store it securely — treat it like a password.

Step 2: Add credits

New accounts have $0 balance. Add credits from the Billing page. Starting amount: $5 — enough for ~1,000 forex requests or ~250 COT report queries.

Step 3: Make a request

curl "https://api.marketdataset.ai/forex/prices?pair=EURUSD&interval=hour&limit=5" \
  -H "X-API-KEY: sk_your_key_here"

Example response

{
  "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": 4.995
  }
}

What’s next?

Forex Prices

Full parameter reference for the forex prices endpoint.

Crypto Funding Rates

Fetch perpetual futures funding rate history.

MCP Server

Use MarketDataset as an MCP tool in Claude.

Rate Limits

Understand request limits for your plan.