FX 1-Minute Dataset (+ Crude Oil and Stock indexes e.g. SP500)
API and dataset download for histdata.com.
Download the dataset
-
Click Here to download it: All instruments - 1Minute - 2000 / 2022 - Google Drive link (2.5GB).
-
You can also re-download the whole dataset (up to date) by yourself:
pip install -r requirements.txt
python download_all_fx_data.py
Expect it to take around 10 minutes if you have a fast internet connection.
API
pip install histdata
Examples
from histdata import download_hist_data as dl
from histdata.api import Platform as P, TimeFrame as TF
- Download tick data for 2019/06:
dl(year='2019', month='6', pair='eurusd', platform=P.GENERIC_ASCII, time_frame=TF.TICK_DATA)
- Other possible calls:
dl(year='2019', month='6', pair='eurusd', platform=P.NINJA_TRADER, time_frame=TF.TICK_DATA_LAST)
dl(year='2019', month='6', pair='eurusd', platform=P.NINJA_TRADER, time_frame=TF.TICK_DATA_ASK)
dl(year='2019', month='6', pair='eurusd', platform=P.NINJA_TRADER, time_frame=TF.TICK_DATA_BID)
dl(year='2019', month='6', pair='eurusd', platform=P.NINJA_TRADER, time_frame=TF.ONE_MINUTE)
dl(year='2019', month='6', pair='eurusd', platform=P.GENERIC_ASCII, time_frame=TF.TICK_DATA)
dl(year='2019', month='6', pair='eurusd', platform=P.EXCEL, time_frame=TF.ONE_MINUTE)
dl(year='2019', month='6', pair='eurusd', platform=P.META_TRADER, time_frame=TF.ONE_MINUTE)
dl(year='2019', month='6', pair='eurusd', platform=P.META_STOCK, time_frame=TF.ONE_MINUTE)
dl(year='2018', month='6', pair='eurusd', platform=P.NINJA_TRADER, time_frame=TF.TICK_DATA_LAST)
dl(year='2018', month='6', pair='eurusd', platform=P.NINJA_TRADER, time_frame=TF.TICK_DATA_ASK)
dl(year='2018', month='6', pair='eurusd', platform=P.NINJA_TRADER, time_frame=TF.TICK_DATA_BID)
Data specification
This repository contains:
- A dataset of all the FX prices (1-minute data) from 2000, in Generic ASCII.
- More than 66 FX pairs
- Contains some commodities:
- WTI/USD = WEST TEXAS INTERMEDIATE in USD
- BCO/USD = BRENT CRUDE OIL in USD
- Contains some indexes:
- SPX/USD = S&P 500 in USD
- JPX/JPY = NIKKEI 225 in JPY
- NSX/USD = NASDAQ 100 in USD
- FRX/EUR = FRENCH CAC 40 in EUR
- UDX/USD = US DOLLAR INDEX in USD
- UKX/GBP = FTSE 100 in GBP
- GRX/EUR = DAX 30 in EUR
- AUX/AUD = ASX 200 in AUD
- HKX/HKD = HAN SENG in HKD E - TX/EUR = EUROSTOXX 50 in EUR
- A set of functions to download the historical prices yourself.
All the data is retrieved from: http://www.histdata.com/
Any file in a dataset is zipped and contains:
- a CSV (semicolon separated file).
- a status report (containing some meta data such as gaps).
Any CSV file looks like this:
20120201 000000;1.306600;1.306600;1.306560;1.306560;0
20120201 000100;1.306570;1.306570;1.306470;1.306560;0
20120201 000200;1.306520;1.306560;1.306520;1.306560;0
20120201 000300;1.306610;1.306610;1.306450;1.306450;0
20120201 000400;1.306470;1.306540;1.306470;1.306520;0
[...]
Headers are not included in the CSV files. They are:
DateTime Stamp;Bar OPEN Bid Quote;Bar HIGH Bid Quote;Bar LOW Bid Quote;Bar CLOSE Bid Quote;Volume
DateTime Stamp
Format:
YYYYMMDD HHMMSS
Legend:
- YYYY – Year
- MM – Month (01 to 12)
- DD – Day of the Month
- HH – Hour of the day (in 24h format)
- MM – Minute
- SS – Second, in this case it will be always 00
TimeZone: Eastern Standard Time (EST) time-zone WITHOUT Day Light Savings adjustments
OPEN Bid Quote
The open (first) bid quote of the 1M bin.
HIGH Bid Quote
The highest bid quote of the 1M bin.
LOW Bid Quote
The lowest bid quote of the 1M bin.
CLOSE Bid Quote
The close (last) bid quote of the 1M bin.
Volume
Number of lots. Looks like it's always 0.
Metadata
Release files for histdata 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| histdata-1.1.tar.gz | 8.7 kB | Without provenance | Details for histdata-1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| histdata-1.1-py3-none-any.whl | Python 3 | none | any | Details for histdata-1.1-py3-none-any.whl |
Total release size: 17.8 kB
Release files / histdata-1.1.tar.gz
| Download URL | histdata-1.1.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e840ea10b9242210509c1bd61e853cd7308c87bb517021453332d777bd54f034
|
|
BLAKE2b-256 checksum How to use checksums |
fbdf266581195350ee915f57dc896668026566347f6d56b7bf75b5d596de8dea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.10
|
Release files / histdata-1.1-py3-none-any.whl
| Download URL | histdata-1.1-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4cc034c20f243be04b81aedbd04769085b5b4e25f047ebb18d3b7f9ced82050e
|
|
BLAKE2b-256 checksum How to use checksums |
d4150daad2ad5896dd47213f7269ae47dcc97e362cf194e911d147e5965b01fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.10
|
Security for histdata 1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.