Download Historical Forex Data

Moderator: Moderator

Download Historical Forex Data

Postby AaronK » Thu Jan 31, 2019 7:06 am

I found out that the Market scope starts at 2018.01.01. I am looking for an easier way to download the Tick Data. The Forex Connect API is written for Windows Operating Systems. Is it possible to send a string via wget to download the Tick Data? That is an idea to download the data. I would like to download the data day by day.

Code: Select all
#!/bin/sh

Symbol="EURUSD"
Year="2008"
Startdate="20080101"
Enddate="20081231"

Username: de123456
Passwd: password

wget -Snv "http://tickdata.fxcorporate.com/symbol=$Symbol&startdate=$i&enddate=$Enddate&Username=$username&$passwd=$password" -O $Year/$Symbol-$k.csv;
AaronK
 
Posts: 2
Joined: Tue Mar 07, 2017 11:24 am

Re: Download Historical Forex Data

Postby Konstantin.Toporov » Thu Jan 31, 2019 11:19 am

You need to log in to ForexConnect to download data.
For example you can use python:
http://fxcodebase.com/bin/forexconnect/ ... ry_py.html
Konstantin.Toporov
FXCodeBase: Initiate
 
Posts: 104
Joined: Mon Aug 31, 2015 10:16 am

Re: Download Historical Forex Data

Postby AaronK » Wed Feb 06, 2019 6:47 am

I need a little help to download the historical Tick Data by example for EUR/USD from 2015 until now. Every day should written in a csv file and packed in a gzip file. for example EURUSD-2015-01.03.gz

Can you give me a little help with a code snippet? It do not need to be written in Python. A simple bash shell script will be okay for me.
AaronK
 
Posts: 2
Joined: Tue Mar 07, 2017 11:24 am

Re: Download Historical Forex Data

Postby Konstantin.Toporov » Thu Feb 07, 2019 10:30 am

C++ sample
GetHistPrices
is prebuilt and included into FC installation package.
You can call it from bash.
Konstantin.Toporov
FXCodeBase: Initiate
 
Posts: 104
Joined: Mon Aug 31, 2015 10:16 am


Return to ForexConnect API

Who is online

Users browsing this forum: No registered users and 2 guests