Introduction

What is this API?

The Forex Market Data API is a REST + WebSocket service that provides programmatic access to live and historical forex market data. Data is collected in real-time directly from MetaTrader 5 terminals connected to live broker accounts, and delivered to you with no intermediate aggregators.

Available Data

Feeds

Data is organised into feeds, one per broker account. Your API key is granted access to specific feeds; GET /v1/symbols returns only what you are entitled to, and anything else returns 403.

FeedBrokerSymbolsTimestamps
WMMARKETS:ZEROWM Markets Ltd230Broker time (UTC+3)
WMMARKETS:PRIMEWM Markets Ltd230Broker time (UTC+3)
WMMARKETS:VIPWM Markets Ltd230Broker time (UTC+3)
OANDA:LIVEOANDA Global1,622True UTC

Instruments

WM Markets feeds — 230 symbols each

CategoryCountExamples
Forex Majors~28EURUSD, GBPUSD, USDJPY
Forex Minors~60AUDCAD, EURGBP, GBPJPY
Crypto~10BTCUSD, ETHUSD, LTCUSD
Global Indices~15US30, US500, GER40
CFD Stocks~100AAPL, MSFT, TSLA
Commodities~15XAUUSD, XAGUSD, USOIL

OANDA:LIVE — 1,622 symbols

CategoryCountExamples
Share CFDs~1,540AAPL_CFD.US, ASML_CFD.NL, MC_CFD.FR, ERICb_CFD.SE
Forex~41EURUSD, GBPUSD, EURNZD
Global Indices~17US30, US100, US500
Crypto~13BTCUSD, ETHUSD
Commodities & Metals~10XAUUSD, XAGUSD, USOIL, UKOIL

OANDA's value over the WM feeds is equities: roughly 1,540 share CFDs across 12 exchanges in the US, UK and Europe. Their symbols contain a dot and are sometimes mixed case — see Symbol Format before parsing them.

Monthly history reaches back to 2016 for the long-established instruments.

Supported Resolutions

API CodeNameBar Duration
1M11 minute
5M55 minutes
10M1010 minutes
15M1515 minutes
30M3030 minutes
60H11 hour
120H22 hours
240H44 hours
1DDaily1 day
1WWeekly1 week
1MMonthly1 month

History Depth

ResolutionDepth
M1~3 months (broker limit)
M5 – M15~12 months
H1 and aboveFrom January 2024 onwards
DailyFrom January 2024 onwards

Technical Architecture

Your Application
    │
    ├── REST API  →  https://api.pipdata.net/v1/*
    │   ├── GET /v1/config      ← TradingView configuration
    │   ├── GET /v1/symbols     ← Symbol list and search
    │   ├── GET /v1/history     ← Historical OHLCV bars
    │   ├── GET /v1/coverage    ← Available data date ranges
    │   ├── GET /v1/status      ← Live feed health
    │   └── GET /v1/usage       ← Your API key usage stats
    │
    └── WebSocket  →  wss://api.pipdata.net/v1/stream
        └── Live M1 bar updates as each candle closes

Symbol Format

Every instrument is identified by a compound key with three colon-separated parts:

WMMARKETS:ZERO:EURUSD
│         │     │
│         │     └─ Display symbol (no broker suffix)
│         └─ Account type
└─ Broker name

Use this compound key in all symbol parameters across the REST and WebSocket APIs.

SLA and Limits

MetricValue
Uptime SLA99.5%
REST latency< 200ms (95th percentile)
WebSocket latency< 100ms
Max countback per request10,000 bars
WebSocket symbols per connectionPlan-dependent

Next Steps

Features

Make your first API call in under 5 minutes.

Card title

Card description

Learn how to authenticate every request.

Card title

Card description