Live FX, Crypto, and CFD Rates in 5 min or less!

Tradermade
2 min readJan 5, 2021

TraderMade are 30+ year veterans of the FX Charting market and have recently released a new FX Data Platform to all market participants to access live and historical rates from their extensive database of granular FX data.

The system has been designed to make access to the data as simple and painless as possible and to this end, they state that you can get access to data in less than 5 min. They offer pre-populated example code for Python, PHP, JavaScript (fetch), and JavaScript (jQuery).

For this example, we are going to give the Python example a go.

  1. First, we need to register for a demo account at https://marketdata.tradermade.com/signup they only require limited information and the sign-up is quick and simple.

2. Once logged in we will jump to the documentation section https://marketdata.tradermade.com/documentation#python here we find a pre-populated example and a copy button. This will have your api_key pre-set.

This will call “https://marketdata.tradermade.com/api/v1/live?currency=EURUSD,GBPUSD,UK100&api_key=” and return the live rate”

3.Open a text editor of your choice and paste the code you just copied and save the file FXLiveRates.py

4. We are going to assume that you have a python environment installed if not you can install it from https://www.python.org.

5. Open a command window and type “python3 FXLiveRates.py” and you should see the following output.

{‘endpoint’: ‘live’, ‘quotes’: [{‘ask’: 102.812, ‘base_currency’: ‘USD’, ‘bid’: 102.81, ‘mid’: 102.811, ‘quote_currency’: ‘JPY’}], ‘requested_time’: ‘Tue, 05 Jan 2021 10:28:36 GMT’, ‘timestamp’: 1609842517}

Live rates in less than 5 min….

A full list of end-points for both live and historical data can be found https://marketdata.tradermade.com/documentation as well as information about TraderMades real-time streamed offerings of Web-Socket, Socket-IO, and FIX, https://marketdata.tradermade.com/streaming-data-documentation.

--

--