About Macroeconomics Indicators
The Macroeconomic Indicators dataset, provided by EODHD, provides data on 39 major macroeconomic indicators of 249 countries and regions. The data starts in January 1998, and is delivered on indicators update.
About EOD Historical Data
EODHD was a France financial data provider founded in April 2015. They focus on providing clean financial data, including stock prices, splits, dividends, fundamentals, macroeconomy indicators, technical indicators, and alternative data sources, through 24/7 API seamlessly.
About QuantConnect
QuantConnect was founded in 2012 to serve quants everywhere with the best possible algorithmic trading technology. Seeking to disrupt a notoriously closed-source industry, QuantConnect takes a radically open-source approach to algorithmic trading. Through the QuantConnect web platform, more than 50,000 quants are served every month.
Algorithm Example
class EODHDMacroIndicatorsAlgorithm(QCAlgorithm):
def Initialize(self):
self.set_start_date(2020, 10, 7)
self.equity_symbol = self.add_equity("SPY", Resolution.Daily).symbol
ticker = EODHD.MacroIndicators.UnitedStates.GDP_GROWTH_ANNUAL
self.dataset_symbol = self.add_data(EODHDMacroIndicators, ticker).Symbol
def OnData(self, slice):
indicators = slice.get(EODHDMacroIndicators).get(self.dataset_symbol)
if indicators:
gdp = indicators.data[0].value
self.SetHoldings(self.equity_symbol, 1 if gdp > 0 else -1)
Example Applications
The Macroeconomic Indicators dataset provides data on global macro indicators, allowing traders to react on market sentiment. Examples include the following strategies:
- Long straddle to trade the market shock brought by the macro indicators.
- Hold long or short position of the market representative ETF based on the expected market direction.
- Statistical arbitrage on 2 or more correlated global markets based on market strength indicated by macro indicators.
Pricing
Cloud Access
Using Macroeconomic Indicators data in the QuantConnect Cloud for your backtesting and live trading purposes.
Explore Other Datasets
US Equities
Dataset by AlgoSeek
Economic Events
Dataset by EOD Historical Data
US Federal Reserve (FRED)
Dataset by FRED