API for Forex: 5 Providers Compared for Data and Trading

  1. iTick
  2. Forex API
API for Forex: 5 Providers Compared for Data and Trading - iTick
API for Forex: 5 Providers Compared for Data and Trading

The best API for forex depends on your job. If you need rates, ticks and history, pick a data feed. If you need to place orders from code, pick a broker API. For data, iTick suits developers who want forex, stocks and crypto under one key and a free start. fastFOREX suits apps that mostly convert prices, and Twelve Data suits Python and spreadsheet users who want a free tier. OANDA suits businesses that need decades of records. For trading, FOREX.com offers REST access to live prices and orders. A good pick publishes its rate limits, states how often prices update and lets you test before you pay.

The search results for this topic mix three different products: currency converters, market data feeds and broker execution APIs. Free tiers add another trap. They often come with a low call cap, a personal-use restriction or one-minute price updates. Pick the wrong type and you rewrite your integration a month later.

This article walks through five providers, each by what it offers, who it suits and what it costs. We run iTick, so we list it first and hold it to the same checks as the rest. We describe the other four only from what they publish, and you should confirm current terms on their sites before you commit.

1. iTick Forex API for rates, ticks and history

iTick's Forex API is a data feed with 150+ currency pairs, delivered by REST queries and WebSocket push. It is a good first stop if you want a free forex API key and may add other asset classes later.

What it offers

Data comes from banking institutions and arrives with millisecond-level latency. Use REST for snapshots and history, and WebSocket when you want prices pushed to you instead of polling. One key also covers US, Hong Kong and China A-share stocks, indices, crypto and metals.

  • Real-time rates, historical K-lines (OHLCV) and tick data
  • Technical indicators, market depth and an economic calendar
  • JSON and CSV output
  • Client libraries for Python, JavaScript, Go and Java

Who it suits and what it costs

It suits developers, fintech teams and quants who want forex data next to other markets. iTick is a data provider, not a broker, so you pair it with a broker when your strategy needs to place orders. The Free plan is for personal use only, and the Professional plan is the first one suited to business use.

PlanPriceREST calls/minWebSocket connectionsSubscriptions
Free$0513
Base$79/month1203200
Professional$159/month6006500
Premium$319/month1200122000

Here is a worked example. If each call returns one pair, polling 10 pairs once a minute needs 10 calls a minute, which is double the Free cap. Polling the same 10 pairs every 5 seconds needs 120 calls a minute, exactly the Base limit. Three WebSocket subscriptions on Free are enough to stream a few pairs without polling at all.

Match the plan to your polling math, or switch to WebSocket and stop counting calls.

2. fastFOREX for price conversion and bid/ask

fastFOREX is a rates API built mainly for apps that show or convert prices. It covers 170+ currencies and starts at $18 a month.

What it offers

Midpoint rates update every 60, 30 or 1 second depending on the plan. Live bid/ask quotes on 2,300+ FX pairs and WebSocket streaming sit on the Premium plan. History reaches back to 1970 for select pairs, with tick history on request. The same API also serves crypto and metals prices.

  • Midpoint rates, conversion and historical lookups by date
  • OHLC candles down to the minute
  • WebSocket bid/ask streaming
  • Crypto and metals prices from the same key

Who it suits and what it costs

It fits checkout pages, invoicing tools and dashboards that need a forex price API without much ceremony. Every plan includes 1 million calls a month from $18, and there is a 7-day full-feature trial with email-only signup. There is no permanent free tier, so a hobby project pays from day one.

The call budget is easy to size. A million calls a month averages about 23 calls a minute, which is plenty for a store that caches rates but thin for a bot that polls every second.

fastFOREX is the quick fix for showing prices in local currencies, and bid/ask needs the top plan.

3. Twelve Data for a free tier and deep history

Twelve Data is a market-data API with a free plan, and it is the easiest of the five to try from Python or a spreadsheet. It covers 1,300+ pairs across 140 currencies and precious metals.

What it offers

History runs 20+ years, down to intraday intervals. Rates update at least once per minute, and tick-by-tick streaming is available. Output comes as JSON or CSV, with SDKs and spreadsheet add-ins. It states a 99.95% uptime SLA, or 99.99% on Enterprise. A first call is one line:

      curl "https://api.twelvedata.com/exchange_rate?symbol=EUR/USD&apikey=your_api_key"

    

Who it suits and what it costs

It suits students, analysts and developers who want to test a forex API for free before paying. The free plan needs no credit card, and paid tiers are on its pricing page.

One caveat matters for traders. Per-minute updates are fine for charts, reports and daily signals, but a short-term strategy needs the streaming option instead.

Twelve Data is the lowest-friction way to prototype, as long as one-minute prices are enough for your use.

4. OANDA for long historical records

OANDA's Exchange Rates API is a data service for teams that care about breadth and history more than a free key. It offers over 32 years of historical data across more than 38,000 forex pairs and rates.

What it offers

That depth covers exotic crosses that smaller feeds skip. OANDA says the API is easy to integrate into an existing platform, so it targets companies adding rates to a product or reporting system rather than hobbyists.

  • Three decades of history for backtesting and audits
  • A very wide pair universe
  • A data-only product with no order execution

Who it suits and what it costs

It suits finance teams, researchers and platform builders who must reconcile old transactions or test a model across many currencies. If you only need the major pairs for the last few years, you are buying more history than you will use.

Pricing is the one thing to check on OANDA's own page before you plan around it. Compare it with the free and entry plans above, because the extra history only pays off when your work depends on it.

Choose OANDA when historical depth is the requirement, not when you just need current rates.

5. FOREX.com REST API for placing trades

FOREX.com is the pick when you want forex trading with an API instead of a data feed. Its REST API lets you automate strategies against live streaming prices.

What it offers

You can execute trades and a full range of orders across 80 markets, pull historical data for analysis and read account details. Those include active orders, balance, available margin, open positions and trade history in real time. You can code against it in any network-accessible language, and there is a documentation portal with sample code plus a member support forum. Institutions can ask about a separate FIX API.

Who it suits and what it costs

It suits algorithmic traders who already want a broker account and need their code to act on it. Access is not instant: you open a spread-only account, then ask customer service to connect the API.

  1. Apply for a trading account.
  2. Request API access from the service team.
  3. Connect, then develop and test your strategy.

The page lists no separate API fee, so your cost is the trading cost on the account. Forex trading carries real risk of loss, so test any automated strategy thoroughly before you risk capital.

A broker API trades for you, and a data API only informs the strategy, so many traders use both.

Choosing your forex API

Decide first whether you need data or execution. For rates, history and ticks, start with a free key and measure your real call volume against the limits. For orders, you need a broker API such as FOREX.com's. Most serious setups end up with both, a data feed for research and a broker for execution.

If you want forex, stocks and crypto behind one key, with REST, WebSocket and a free plan to start, get a free iTick API key and test your first pairs today.