Introductory Notebooks

These introductory downloadable Jupyter notebooks provide researchers and investment professionals with a headstart to become more familiar with JPMaQS. They demonstrate how to import data through the J.P. Morgan DataQuery API into a standard Python environment, how to work with the standard pandas data frame format, and give examples of simple analysis using either standard packages or the specialized Macrosynergy package.

Introductory Tutorials

The nature and function of quantamental indicators

Introduction to a quantamental system architecture

How to download quantamental indicators

Macro-quantamental scorecards

Macro-quantamental scorecards are condensed visualizations of point-in-time economic information for a specific financial market. Their defining characteristic is the combination of efficient presentation and evidence of empirical power. This post and the accompanying Python code show how to build scorecards for duration exposure based on six thematic scores: excess inflation, excess economic growth, overconfidence, labour market tightening, financial conditions, and government finance.

All thematic scores have displayed predictive power for interest rate swap returns in the U.S. and the euro area over the past 25 years. Since economic change is often gradual and requires attention to a broad range of indicators, monitoring can be tedious and costly. The influence of such change can, therefore, build surreptitiously. Macro-quantamental scorecards cut information costs and attention time and, hence, improve the information efficiency of the investment process.

Principles of macro strategy building

This post is a condensed guide on best practices for developing systematic macro trading strategies with links to related resources. The focus is on delivering proofs of strategy concepts that use direct information on the macroeconomy. The critical steps of the process are (1) downloading appropriate time series data panels of macro information and target returns, (2) transforming macro information states into panels of factors, (3) combining factors into a single type of signal per traded contract, and (4) evaluating the quality of the signals in various ways.


Best practices include the formulation of theoretical priors, easily auditable code for preprocessing, visual study of data before and after transformations, signal optimisation management with statistical learning, and a protocol for dealing with rejected hypotheses. A quick, standardised and transparent process supports integrity and reduces moral hazard and data mining. Standard Python data science packages and the open-source Macrosynergy package provide all necessary functionality for efficient proofs of concept.