Real-time CFD API

Get real-time and historical CFD data for 40+ instruments, including leading stocks, indices, energy, & metals - all in one powerful, robust API.

Real-time CFD API
client logos client logos client logos client logos

Trusted by top companies & institutions. Read our customer stories

CFDs
50+
Tick Data
8+ Years
Updates
< 50ms
Service Uptime
99.99%

Comprehensive CFD data

4 APIs in One!

Unlock a world of trading opportunities with our comprehensive CFD data. Access 40+ instruments spanning stocks, indices, energy, and precious metals, all through a single, user-friendly API. Empower your innovation. Our expertly crafted APIs seamlessly integrate into your financial apps and websites, providing you with the tools to create groundbreaking trading solutions.

  • Stocks

    Stocks

    22+ US Stocks CFDs

    Get live and historical data for 22+ US Stocks CFDs, including Apple, Amazon, Tesla, and more.
  • Indices

    Indices

    10 Stock Indices

    Get prices for 10 most popular stock indices, including the S&P 500, NASDAQ, and Dow Jones 30.
  • Precious
Metals

    Precious Metals

    Gold, Silver, Platinum

    Access real-time and historical data for gold, silver, and platinum, enabling you to track precious metal prices.
  • Energy

    Energy

    WTI, Brent, Natgas

    Access real-time data for WTI Crude Oil, Brent Crude Oil, and Natural Gas, enabling you to monitor energy prices.

Data Delivery Methods

REST API

REST API

Get access to real-time and historical CFD data through our RESTful API, enabling seamless integration.

WebSocket

WebSocket

Stream real-time CFD data for 4 markets directly into your trading setup or platforms. Get instant updates.

Addins

Addins

Get CFD data directly into your Excel spreadsheets, Google Sheets or Chat GPT with our add-ins.

Turning data into decisive market advantage

Powering financial innovation, one data point at a time.

Empower Your Algorithms Empower Your Algorithms.
Backtest trading algorithms, create custom indicators, and implement real-time trading alerts, enhancing your algorithmic trading strategies seamlessly.
Create and Inform Create and Inform.
Design indices, implement pricing mechanisms, or access gold, oil, and asset prices for in-depth analysis and informed decision-making.
Versatile and Dependable Versatile and Dependable.
Trusted by fintech, brokers, and traders for accurate, high-quality CFD data, enabling reliable financial tools and market insights.
Tradermade CFDs

Build With Ease

Robust. Seamless. Expertly Supported.

Verified and Accurate

Verified and Accurate

Receive clean, reliable data from Tier 1 institutions, providing the accuracy needed for financial modeling and critical market applications.

Developer-Friendly APIs

Developer-Friendly APIs

Flexible RESTful and WebSocket APIs, simplifying integration across different programming environments, tailored for fast and efficient development.

Unwavering Support

Unwavering Support

Our market data experts provide prompt technical support for your queries about market data and integration.

Comprehensive Historical Data

Comprehensive Historical Data

Leverage historical CFD data for backtesting, market trend analysis, and improving accuracy for trading algorithms and applications.

Informational Use

Informational Use

Embed real-time data into dashboards for gold, oil, and index prices, keeping users informed with up-to-date market insights.

Get the right solution

We provide bespoke data and technology solutions to help customers integrate our data into their platforms. If you don't find what you are looking for, talk to our team of experts.

Libraries & tutorials

Made for developers by developers

Flexible Data Formats.
JSON and CSV formats for easy forex data integration across programming environments. Ideal for developers, analysts, and traders.
Powerful Client Libraries & SDKs.
Comprehensive libraries and SDKs accelerate development. Streamline API integration in your preferred language for faster project completion.
Comprehensive Tutorials & Examples.
Extensive guides and code samples for quick API implementation. Build robust financial applications efficiently with step-by-step help.
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)

    }
}

Data for all

Who uses our CFD API?

Our API is easy to use, fast, and reliable, so you can spend less time worrying about data and more time building your app.

Financial Institutions
Financial institutions, such as banks, hedge funds, and asset management firms, leverage our CFD API to enhance their risk management, trading strategies, and market analysis.
Brokerage Firms
Brokerage firms use our CFD API to provide their clients with accurate and up-to-date market data, enabling them to make informed trading decisions.
Trading Platforms
CFD trading platforms rely on our API to deliver real-time quotes, charts, and analysis tools to their users, facilitating efficient and effective trading.
Algorithmic Traders
Algorithmic traders utilize our CFD API to develop and execute automated trading strategies based on market data, enabling them to capitalize on trading opportunities at high speeds.
Research Firms
Research firms use our CFD API to conduct in-depth market analysis, generate reports, and provide valuable insights to their clients.
Education and Training
Educational institutions and training providers use our CFD API to simulate real-world trading environments and educate students on the intricacies of CFD trading.

What people say

CTO, Fuze Finance

One of the bedrocks of Fuze is good financial data and TraderMade is tailor made for our use-case. The flexibility of the API to fetch prices for different FX pairs, the robustness and availability of the API has never failed us.

Srijan Shetty
CTO, Fuze Finance
COO, BITA Data

TraderMade has been a reliable source of FX and Precious Metals pricing data. In the indexing industry, you have to be as precise as a Swiss watch. Using TraderMade has been a help for Bita to reach that precision on our calculations.

George Kuznetsov
COO, BITA Data

Frequently asked questions

CFD data refers to real-time and historical price information for Contracts for Difference (CFDs), which are financial instruments that allow you to speculate on the price movements of underlying assets.

CFD data can be used for various purposes, including market analysis, risk management, algorithmic trading, and building financial applications.

TraderMade offers CFD data on a wide range of assets, including stocks, indices, energy, and precious metals.

TraderMade's CFD data is highly accurate and reliable, sourced from leading broker-dealer networks.

Yes, TraderMade provides historical CFD data, allowing you to analyze past market trends and patterns.

TraderMade's CFD data is delivered with sub-50ms latency, ensuring you have access to the most up-to-date information.

You can access TraderMade's CFD data through our API, which provides real-time and historical pricing information.

You can access your API key from your dashboard once you sign up and log in. It's free to sign up. You can easily track your API usage. For streaming data API key, start a trial by self-serve once you log in. The streaming API key expires in 14 days.

Yes, we provide CFD data for some instruments via WebSockets. You can self-start a 14-day trial from your dashboard once you sign up.

There is no centralized location for CFD trading, yet it works 24 hours, 5 days a week. You can check the open/close schedule for various CFD instruments through the CFD Market Opening Times Page.

Yes, TraderMade's dedicated support team can assist you with integrating our CFD data into your application.

Yes, TraderMade's CFD data is ideal for algorithmic trading, providing the data required for developing and executing automated trading strategies.

Yes, this works on a rolling monthly basis and can be upgraded, downgraded, or canceled at any time. Up to 1000 requests a month are free forever. We also offer one-time data sales; please contact us or make a purchase via shopping cart.

Our pricing plans are flexible and tailored to your specific needs. Please contact our sales team for more information.

Our payment partner is Stripe; you can use a variety of debit and credit cards - including Visa, MasterCard, Discover, American Express & Diner's Club.

Crypto
Crypto
Get live and historical cryptocurrency exchange rates via Websockets and JSON REST API.
Explore Crypto
Forex
Forex
Get live and historical Forex data for your applications and services via our REST and Websocket APIs.
Explore Forex

From the blog

Learn how to grow your business with our expert advice.

What is CFD Data? Why Use CFD API?

What is CFD Data? Why Use CFD API?

This article takes you through the meaning of CFD and CFD API, its working, usage, advantages to businesses and how TraderMade helps you make the most of it.

What is Brent Crude?

What is Brent Crude?

Learn What is Brent crude and why its the global oil benchmark and what are the key Brent Crude facts.