Forex Data API: Things You Didn’t Know
Explore some fascinating actualities about the forex API origin and its applications in blockchain technology and the forex market you might not know.
Spot rates for majors, minors, exotics, crosses and precious metals from Tier 1 banks and non-bank liquidity. Live top-of-book bid and ask as the market trades, not once-a-day central-bank reference rates, backed by decades of daily history.
Live bid and ask on traded pairs, mid on crosses, daily history for every pair. See the full symbol list
Trusted by top companies & institutions. Read our customer stories
One API, sourced the right way. We aggregate FX and crypto from institutional venues, validate every price, and deliver it in a single clean format.
Sourced from
Tier-1 banks
Non-Bank LPs
TraderMade
Aggregated and validated, with sub-20ms latency
One API, one format
Euro – US Dollar
–
–
British Pound – US Dollar
–
–
US Dollar – Japanese Yen
–
–
US Dollar – Mexican Peso
–
–
Live preview, refreshed every few seconds. All live rates
Solutions
One API, licensed for the way your business uses it. Each page explains the data, the delivery and the licence, and ends with a form that reaches the data team.
Live rates for platforms, apps and invoicing, fresh on every call
Sub-20ms pricing with display rights for your clients
Off-chain prices for the engine behind your oracle feed
A daily close or your own cut-off for revaluation and reporting
Intuitive & easy-to-use APIs
Real-time quotes
Access live bid/ask FX rates via REST or Streaming WebSocket APIs. Stay in sync with the market and power applications with up-to-the-second pricing.
Data APIs
Access real-time and historical forex data via WebSocket / FIX (streaming) and REST (on-demand) APIs. Power your algo trading, analytics, or financial apps with ease.
Add-ins
Bring live and historical forex rates to Google Sheets, Excel, and ChatGPT. No complex setup, just powerful integrations.
Candlestick bars
Retrieve OHLC (Open, High, Low, Close) time series data by minute, hour, or day, ideal for candlestick charts, technical analysis, and historical tracking.
Currency conversion
Add real-time currency conversion to your platforms with robust APIs supporting global, multi-currency data retrieval.
Made for developers by developers
import tradermade as tm
# set api key
tm.set_rest_api_key('api_key')
#get live data
tm.live(currency='EURUSD,GBPUSD',fields=['bid', 'mid', 'ask'])
# get historical data
tm.historical(currency='EURUSD,GBPUSD', date='2021-04-22',interval='daily', fields=['open', 'high', 'low','close'])
# get hourly timeseries data
tm.timeseries(currency='EURUSD', start='2024-11-25-00:00',end='2024-11-26-15:03',interval='hourly',fields=['open', 'high', 'low','close'])
# gets list of all available cfds
tm.cfd_list()
# gets list of all available currency codes
tm.currency_list()
import (
"log"
"fmt"
tradermade "github.com/tradermade/Go-SDK/rest"
)
func main() {
// init client
client := tradermade.NewRESTClient("YOUR_API_KEY")
// set parameters
currencyPairs := []string{"EURUSD", "GBPUSD", "USDJPY"}
// get live rates
liveRates, err := client.GetLiveRates(currencyPairs)
if err != nil {
log.Fatalf("Error fetching live rates: %v", err)
}
// iterate over quotes
for _, quote := range liveRates.Quotes {
fmt.Printf("Base: %s, Quote: %s, Bid: %f, Ask: %f, Mid: %f",
quote.BaseCurrency, quote.QuoteCurrency, quote.Bid, quote.Ask, quote.Mid)
}
}
package io.tradermade.test_client_jvm
import io.tradermade.test_client_jvm.ui.theme.TestClientJVMTheme
import io.tradermade.kotlin.sdk.TraderMadeAPI
public class JavaTMSSample {
public static void main(String[] args) throws InterruptedException {
val api = TraderMadeAPI("YOUR_API_KEY")
val liveData = api.getLiveData("EURUSD,GBPUSD")
print(liveData)
val historicalData = api.getHistoricalData("EURUSD", "2023-08-01")
print(historicalData)
val timeSeriesData = api.getTimeSeriesData("EURUSD", "2023-08-01", "2023-08-10", "daily", "1")
print(timeSeriesData)
val convertedAmount = api.convertCurrency("EUR", "USD", 1000.0)
print(convertedAmount)
}
}
import TraderMade from "tradermade-nodejs-sdk";
// set API key
const tm = new TraderMade();
tm.setRestApiKey("YOUR_API_KEY");
// get live rates
tm.getLiveRates("EURUSD,GBPUSD")
.then((data) => console.log(data))
.catch((error) => console.error(error));
// get available CFDs
tm.getCfdList()
.then((data) => console.log(data))
.catch((error) => console.error(error));
// get daily time series data
tm.getTimeSeriesData("EURUSD", "2026-01-08", "2026-01-10", "daily", "1", "records")
.then((data) => console.log(data))
.catch((error) => console.error(error));
#include <exception>
#include <iostream>
#include "TraderMadeSDK.h"
int main() {
try {
// set API key
TraderMade tm;
tm.setRestApiKey("YOUR_API_KEY");
// get live rates
std::cout << tm.getLiveRates("EURUSD,GBPUSD") << std::endl;
// get available CFDs
std::cout << tm.getCfdList() << std::endl;
} catch (const std::exception& error) {
std::cerr << error.what() << std::endl;
return 1;
}
return 0;
}
Who uses our currency API?
Our data APIs is easy to use, fast, and reliable, so you can spend less time worrying about data and more time building your app.
What people say
The TraderMade team delivers where it matters most - by providing highly reliable, accurate data. TraderMade ensures our rapidly evolving business ... needs. After years of data provider evaluation and production experience, it's clear that using TraderMade is the responsible decision.
As 3S Money has grown, our need for reliable data sources has also increased. Working with TraderMade has improved our FX operations. The API seamlessly integrates into our platform, providing real-time, accurate market data to support our activities.
Step-by-step guides with complete, working code.
Python · REST
Node.js · REST
Python · Conversion
Excel · Power Query
Our data is sourced from an aggregated feed of institutional providers including banks. We have systems in place to clean our data so that they represent the most accurate prices.
Both Web and streaming API are updated in milliseconds.
There are over 8000+ instruments to choose from, a full list of instruments can be found on the instrument list page.
Gold and silver are included in the FX subscription options, quoted against the US dollar as XAU/USD and XAG/USD.
Open the Developer Sandbox: sign up with your work email, verify it, and your REST key is on your dashboard straight away with an allowance for evaluating the data. When you choose a plan, the same key carries on. If you would rather have a guided evaluation, or you need WebSocket access, Request access and the data team sets it up. You can track your usage from your dashboard at any time.
Yes, this works on a rolling monthly basis which can be upgraded, downgraded or cancelled at any time. We also offer one-time data sales please contact us or purchase via shopping cart.
Our payment partner is Stripe, you can use a variety of debit and credit cards - including Visa, MasterCard, Discover, American Express & Diner’s Club.
Yes, we provide FX data via WebSocket, Request access and the data team sets up a 7-day WebSocket trial.
There is no centralized location for FX trading, yet it works 24 hours, 5 days a week. However, due to time zone differences, the forex market opens at 5 PM EST (New York City) on Sunday (10 PM GMT, Sunday, during Day light saving hours. 9 PM GMT during summer.).
The forex market closes at 5 PM EST (New York City) on Friday (10 PM GMT, Friday, during Day light saving hours. 9 PM GMT during summer).
One key across all asset classes.
Crypto priced in the currencies you already stream, and the markets a multi-asset desk watches, arrive over the same endpoints with the same symbol scheme.
BTC, ETH, SOL and 35 more coins, aggregated from non-bank liquidity providers and quoted against USD, EUR, GBP, JPY and 70 more currencies, 24 hours a day.
Explore CryptoIndices, stocks, metals and energy for multi-asset platforms, on the same API and the same symbol scheme as the forex and crypto feeds.
Explore CFDsLearn how to grow your business with our expert advice.
Explore some fascinating actualities about the forex API origin and its applications in blockchain technology and the forex market you might not know.
How does API work for Forex, CFD, and Crypto real-time data? How do consumer businesses benefit from API usage?
A step by step guide to make the best Forex Trading App: 1) Pick a Platform · 2) Mobile-friendly Design · 3) Forex Data API · 4) Development · 5) ... and SDK