Historical Data Feed
We offer complimentary access to extensive historical datasets for major markets. Our dataset encompasses a comprehensive range of financial instruments, including futures, foreign exchange, equities, and fixed-income securities data. Our official data feed provides the ability to download historical data in intervals of M1, M5, M15, M30, and H1 for comprehensive analysis. Tick data or live quotes are exclusively accessible to our institutional clients through the use of API keys. A subscription can be acquired through the individual user's account portal.
Code Example
app.py
import csv
import requests
url = 'https://hist.grosch.com/commodity/xauusd/m5'
def download_and_print_csv(url):
response = requests.get(url)
if response.status_code == 200:
content = response.content.decode('utf-8')
with open('~Downloads/gold_hist_data.csv', 'w') as local_file:
local_file.write(content)
cr = csv.reader(content.splitlines(), delimiter=',')
my_list = list(cr)
for row in my_list:
print(row)
else:
print(f"Failed to download the CSV. Status code: {response.status_code}")
download_and_print_csv(url)