Transform financial market data into algorithmic trading strategies and deploy them into a live trading environment with recipes leveraging modern Python libraries like pandas, Polars, and DuckDB
Key FeaturesFollow practical, production-grade Python recipes to acquire, visualize, and store financial market dataDesign, backtest, and evaluate the performance of trading strategies using professional techniquesDeploy trading strategies built in Python to a live trading environment with API connectivityBook DescriptionGet Python code for algorithmic trading along with practical guidance from Jason Strimpel, founder of PyQuant News and a veteran of global trading and risk management. This highly practical book takes you from core algorithmic trading concepts and modern data acquisition to rigorous backtesting and strategy execution.
Detailed recipes show you how to use the OpenBB Platform to source free equities, options, and futures data. Using that data, accelerate research with Parquet, Polars, DuckDB, and ArcticDB. You’ll engineer alpha factors with SciPy and statsmodels, using PCA to find latent factors, regression to hedge beta, and measure Fama-French exposures. Then optimize backtests with walk-forward analysis using VectorBT and build production-grade backtests with Zipline Reloaded. You’ll evaluate alpha with pro tools like Alphalens Reloaded and PyFolio and apply agentic AI workflows to automate research and code generation.
For execution, you’ll connect to Interactive Brokers’ API to stream ticks, place and manage orders, retrieve portfolio state, and deploy strategies with monitoring and risk KPIs suitable for live trading. By the end of this book, you’ll not only understand the essentials, but you’ll also have the code templates and patterns to implement, evaluate, and operate Python-based algorithmic trading strategies.
What you will learnAcquire equities, futures, and options data using OpenBB and FMPProcess and analyze time series data efficiently with pandas and PolarsStore and query massive datasets with ArcticDB, DuckDB, and ParquetVisualize trading data using Matplotlib, Seaborn, and Plotly DashEngineer alpha factors using PCA, regression, and Fama-French modelsBacktest strategies with VectorBT and Zipline Reloaded frameworksEvaluate performance and risk using Alphalens Reloaded and PyFolioDeploy and automate live trades using the Interactive Brokers APIWho this book is forThis book is for traders, investors, and Python enthusiasts who need practical code to acquire, analyze, and automate algorithmic trading strategies using modern, high-performance Python tools. Readers should have some exposure to investing or trading, a basic familiarity with Python syntax, and a basic knowledge of libraries such as Pandas and NumPy. This book is ideal for discretionary traders who want to adopt a systematic approach and apply professional techniques, such as factor modeling, backtesting, and execution automation, to trading workflows using Python.
Table of ContentsAcquire Free Financial Market Data with Cutting-Edge Python Libraries Analyze and Transforming Financial Market Data with pandasAccelerate Financial Market Data Analysis with Parquet, DuckDB, and PolarsVisualize Financial Market Data with Matplotlib, Plotly, and StreamlitBuild a Quantamental Research Database with ArcticDBConduct