Buy New
-
To see product details, add this item to your cart.
Ships from: Amazon.com Sold by: Amazon.com
Used - Good
-
To see product details, add this item to your cart.
Ships from: Friends of the Thousand Oaks Library Sold by: Friends of the Thousand Oaks Library
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Python for Algorithmic Trading Cookbook: Recipes for designing, building, and deploying algorithmic trading strategies with Python
Purchase options and add-ons
Harness the power of Python libraries to transform freely available financial market data into algorithmic trading strategies and deploy them into a live trading environment
Get With Your Book: PDF Copy, AI Assistant, and Next-Gen Reader Free
Key Features
- Follow practical Python recipes to acquire, visualize, and store market data for market research
- Design, backtest, and evaluate the performance of trading strategies using professional techniques
- Deploy trading strategies built in Python to a live trading environment with API connectivity
Book Description
Discover how Python has made algorithmic trading accessible to non-professionals with unparalleled expertise and practical insights from Jason Strimpel, founder of PyQuant News and a seasoned professional with global experience in trading and risk management. This book guides you through from the basics of quantitative finance and data acquisition to advanced stages of backtesting and live trading.
Detailed recipes will help you leverage the cutting-edge OpenBB SDK to gather freely available data for stocks, options, and futures, and build your own research environment using lightning-fast storage techniques like SQLite, HDF5, and ArcticDB. This book shows you how to use SciPy and statsmodels to identify alpha factors and hedge risk, and construct momentum and mean-reversion factors. You’ll optimize strategy parameters with walk-forward optimization using VectorBT and construct a production-ready backtest using Zipline Reloaded. Implementing all that you’ve learned, you’ll set up and deploy your algorithmic trading strategies in a live trading environment using the Interactive Brokers API, allowing you to stream tick-level data, submit orders, and retrieve portfolio details.
By the end of this algorithmic trading book, you'll not only have grasped the essential concepts but also the practical skills needed to implement and execute sophisticated trading strategies using Python.
What you will learn
- Acquire and process freely available market data with the OpenBB Platform
- Build a research environment and populate it with financial market data
- Use machine learning to identify alpha factors and engineer them into signals
- Use VectorBT to find strategy parameters using walk-forward optimization
- Build production-ready backtests with Zipline Reloaded and evaluate factor performance
- Set up the code framework to connect and send an order to Interactive Brokers
Who this book is for
Python for Algorithmic Trading Cookbook equips traders, investors, and Python developers with code to design, backtest, and deploy algorithmic trading strategies. You should have experience investing in the stock market, knowledge of Python data structures, and a basic understanding of using Python libraries like pandas. This book is also ideal for individuals with Python experience who are already active in the market or are aspiring to be.
Table of Contents
- Acquire Free Financial Market Data with Cutting-edge Python Libraries
- Analyze and Transform Financial Market Data with pandas
- Visualize Financial Market Data with Matplotlib, Seaborn, and Plotly Dash
- Store Financial Market Data on Your Computer
- Build Alpha Factors for Stock Portfolios
- Vector-Based Backtesting with VectorBT
- Event-Based Backtesting Factor Portfolios with Zipline Reloaded
- Evaluate Factor Risk and Performance with Alphalens Reloaded
- Assess Backtest Risk and Performance Metrics with Pyfolio
- Set Up the Interactive Brokers Python API
(N.B. Please use the Read Sample option to see further chapters)
- ISBN-101835084702
- ISBN-13978-1835084700
- PublisherPackt Publishing
- Publication dateAugust 16, 2024
- LanguageEnglish
- Dimensions7.5 x 0.92 x 9.25 inches
- Print length412 pages
Discover the latest buzz-worthy books, from mysteries and romance to humor and nonfiction. Explore more
Frequently bought together

Customers who viewed this item also viewed
- Python for Algorithmic Trading Cookbook: Recipes for designing, building, and deploying algorithmic trading strategies with PythonPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
- Machine Learning for Algorithmic Trading: Predictive models to extract signals from market and alternative data for systematic trading strategies with PythonPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
- Python for Finance Cookbook: Over 80 powerful recipes for effective financial data analysis, 2nd EditionPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
- Quantitative Trading: How to Build Your Own Algorithmic Trading Business, Revised Edition (Wiley Trading)PaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Sunday, Sep 20
- Advances in Financial Machine LearningHardcoverFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Sunday, Sep 20
- Machine Learning for Trading: A disciplined workflow from research to live execution, with nine case studies and AI agentsPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
Customers also bought or read
- Machine Learning for Algorithmic Trading: Predictive models to extract signals from market and alternative data for systematic trading strategies with Python
Paperback$47.60$47.60FREE delivery Mon, Sep 21 - Python for Finance Cookbook: Over 80 powerful recipes for effective financial data analysis, 2nd Edition
Paperback$37.98$37.98FREE delivery Mon, Sep 21 - Python for Algorithmic Trading: From Idea to Cloud Deployment
Paperback$40.12$40.12FREE delivery Sun, Sep 20 - Quantitative Trading: How to Build Your Own Algorithmic Trading Business (Wiley Trading)
Hardcover$34.44$34.44Delivery Mon, Sep 21 - ALGO TRADING CHEAT CODES: Techniques For Traders To Quickly And Efficiently Develop Better Algorithmic Trading Systems (Essential Algo Trading Package)
Paperback$9.99$9.99Delivery Mon, Sep 21 - Algorithmic Trading: Winning Strategies and Their Rationale (Wiley Trading)
Hardcover$49.29$49.29FREE delivery Sep 22 - 25 - Modern Time Series Forecasting with Python: Industry-ready machine learning and deep learning time series analysis with PyTorch and pandas
Paperback$42.74$42.74FREE delivery Mon, Sep 21 - Investing for Programmers: Understanding markets through data and code
Paperback$52.40$52.40FREE delivery Mon, Sep 21 - Python Machine Learning By Example: Unlock machine learning best practices with real-world use cases
Paperback$29.55$29.55Delivery Mon, Sep 21 - Quantitative Momentum: A Practitioner's Guide to Building a Momentum-Based Stock Selection System (Wiley Finance)
Paperback$13.18$13.18Delivery Mon, Sep 21 - Building Winning Algorithmic Trading Systems, + Website: A Trader's Journey From Data Mining to Monte Carlo Simulation to Live Trading
Paperback$31.30$31.30Delivery Sun, Sep 20 - Mathematics of Machine Learning: Master linear algebra, calculus, and probability for machine learning
Paperback$44.30$44.30FREE delivery Mon, Sep 21 - Pandas Cookbook: Practical recipes for scientific computing, time series, and exploratory data analysis using Python
Paperback$39.99$39.99FREE delivery Mon, Sep 21 - Systematic Trading: A unique new method for designing trading and investing systems
Hardcover$48.49$48.49FREE delivery Sun, Sep 20 - Algorithmic Trading with Python: Quantitative Methods and Strategy Development
Paperback$22.95$22.95Delivery Mon, Sep 21 - Algorithmic Trading with Interactive Brokers (Python and C++)
Paperback$32.00$32.00Delivery Mon, Sep 21 - Trading is Math: The Formulas for Profitable Trading in Any Market
Paperback$19.99$19.99Delivery Mon, Sep 21 - Automated Stock Trading Systems: A Systematic Approach for Traders to Make Money in Bull, Bear and Sideways Markets
Paperback$11.96$11.96Delivery Mon, Sep 21 - Deep Reinforcement Learning Hands-On: A practical and easy-to-follow guide to RL from Q-learning and DQNs to PPO and RLHF
Paperback$32.75$32.75Delivery Mon, Sep 21 - Machine Learning with PyTorch and Scikit-Learn: Develop machine learning and deep learning models with Python#1 Best SellerSpeech & Audio Processing
Paperback$36.05$36.05FREE delivery Sun, Sep 20 - Inside the Black Box: A Simple Guide to Systematic Investing (Wiley Finance)
Hardcover$28.54$28.54Delivery Sun, Sep 20 - Quantitative Portfolio Management: The Art and Science of Statistical Arbitrage
Hardcover$33.94$33.94Delivery Sun, Sep 20 - 11 AI Inspired Algo Trading Strategies: Diversified Futures Trading Strategies Built For Today’s Markets (Essential Algo Trading Package)
Paperback$9.99$9.99Delivery Sun, Sep 20 - Agentic Coding with Claude Code: The everyday developer's guide to agentic coding with Claude Code
Paperback$36.33$36.33FREE delivery Mon, Sep 21
From the Publisher
How has your experience helped you to write this book?
I've been associated with the markets in some capacity for my entire 20-year career. I traded my first stock when I was 18 (24 years ago!) and started writing code around the same time. Early on, I saw how powerful programming was, and for some reason, it just captured my attention. Back then, we didn't have nearly as many tools, so I really had to figure it all out from the first principles. It ended up being a good bet, considering how computing has revolutionized trading and the markets in general. I did not get a computer science degree or study it in school. I'm entirely self-taught, so I had to become obsessed with marketing and programming (Python specifically) to use it effectively. I maintained that level of intensity for my entire career and brought all that experience to the book.
What part or parts of the book are your favorite, and why?
I'm really excited about the entire book, but if I had to pick one part, it's the backtesting section. Specifically, backtesting factor portfolios with Zipline Reloaded. I was an early user of Quantopian in 2012 and became very familiar with Zipline. I immediately saw how powerful it was and studied the code for years. After Zipline Reloaded was created, I started teaching people how to use it in my courses. It's the most powerful event-based backtesting software we have in open source. I love building new factor and relative value strategies. I love analyzing the results with tools like Pyfolio and Alphalense even more! I spent many years professionally and academically working on factor portfolios. It's amazing to see it all wrapped up in powerful Python libraries.
In what ways have you been active in the algorithmic trading community?
In 2015, I started PyQuant News to share Python and quantitative finance content. Since then, I've built a following of 122K people on Twitter, 55K people on LinkedIn, 27K subscribers to my twice-weekly newsletter, and 2,000 people on YouTube. I share examples of using Python in industry for people just getting started. In November 2022, I launched my course ‘Getting Started With Python for Quant Finance’. Since then, more than 1,300+ students have joined. More recently, I've been invited to podcasts and interviews to discuss my background and how people can get started using Python for quant finance. So far, I've published over 110 blogs about using Python for quant finance, dozens of long-form articles, and several hours of YouTube videos.
What makes this book better than other learning resources about algorithmic trading?
I wrote this book to bring readers on a journey. They start with the basic tools required for algorithmic trading, and they end by implementing a trading system. Since it's in a recipe format, readers can pick and choose the recipes that are relevant to their skill level. That combination is quite different from other books I've read. I also stay away from technical analysis. For most people, technical analysis does not work. Especially people new to algorithmic trading. Instead, I focus on trading edges that professionals use. The combination of end-to-end focus, recipe format, and industry-grade strategies is the biggest differentiator. I also introduce several powerful Python tools in the book, which have recently been introduced to the ecosystem: OpenBB Platform, VectorBT, and ArcticDB. These have not been written about together before. Using them will give readers an edge.
Editorial Reviews
Review
“Jason Strimpel's Python for Algorithmic Trading is an exceptional guide for anyone venturing into the world of algorithmic trading. The book’s practicality and hands-on examples, as well as emphasis on open-source tools and packages, stand out with clear, functional code samples that readers can immediately apply to real-world scenarios. The book spends needed time making sure readers are set-up to master skills like the open-source pandas library data manipulation. As the book progresses, Strimpel dives into deeper, denser topics, such as using linear regression to hedge "beta" (volatility), and then from there the books gets into truly advanced material. Overall, Python for Algorithmic Trading strikes a perfect balance between accessibility and technical depth, making it an invaluable resource for aspiring algorithmic traders.”
Rob Underwood, Chief Open Source Officer and Head of Open Source Governance, JPMorgan Chase
About the Author
Jason Strimpel is the founder of PyQuant News and co-founder of Trade Blotter. His career America, Europe, and Asia over the last 20+ years. He previously traded for a Chicago-based hedge fund, was a risk manager at JPMorgan, and managed production risk technology for an energy derivatives trading firm in London. In Singapore, he served as APAC CIO for an agricultural trading firm and built the data science team for a global metals trading firm. Jason holds degrees in finance and economics and a Master's in Capitalize Quantitative Finance from the Illinois Institute of Technology. He shares his expertise through the PyQuant Newsletter, social media, and teaches Getting Started With Python for Quant Finance.
Product details
- Publisher : Packt Publishing
- Publication date : August 16, 2024
- Language : English
- Print length : 412 pages
- ISBN-10 : 1835084702
- ISBN-13 : 978-1835084700
- Item Weight : 1.53 pounds
- Dimensions : 7.5 x 0.92 x 9.25 inches
- Best Sellers Rank: #688,279 in Books (See Top 100 in Books)
- #97 in Financial Engineering (Books)
- #153 in Computer Algorithms
- #304 in Programming Algorithms
- Customer Reviews:
About the author

Jason Strimpel is the founder of PyQuant News and co-founder of Trade Blotter, with a career spanning over 20 years in trading, risk management, and data science.
He previously traded for a Chicago-based hedge fund, served as a risk manager at JPMorgan, and managed production risk technology for an energy derivatives trading firm in London. In Singapore, Jason served as the APAC CIO for an agricultural trading firm and built the data science team for a global metals trading firm. He holds degrees in finance and economics and a Master’s in quantitative finance from the Illinois Institute of Technology.
His career has taken him across America, Europe, and Asia. Jason shares his expertise through the PyQuant Newsletter, social media, and teaches the course "Getting Started With Python for Quant Finance."



















![Options Trading [All-in-1]: 34 Techniques, Tactics, & Strategies to Profit in the Financial Markets. The Ultimate In-Depth Guide for Beginners. Analyze, Execute, & Reduce Risks to Grow Your Net Worth](https://m.media-amazon.com/images/I/51kLgPS9xnL._AC_SR100,100_QL65_.jpg)