Python for Algorithmic Trading Cookbook: Recipes for designing, building, and deploying algorithmic trading strategies with Python
Paperback
Investing & FinanceProgramming
ISBN13: 9781835084700
Publisher: Packt Publishing
Published: Aug 16 2024
Pages: 406
Weight: 1.53
Height: 0.83 Width: 7.50 Depth: 9.25
Language: English
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
- Manage Orders, Positions, and Portfolios with the IB API
- Deploy Strategies to a Live Environment
- Advanced Recipes for Market Data and Strategy Management
Also from
Strimpel, Jason
Building Isomorphic JavaScript Apps: From Concept to Implementation to Real-World Solutions
Strimpel, Jason
Najim, Maxime
Paperback
Also in
Investing & Finance
How to Invest $50-$5,000: The Small Investor's Step-By-Step Plan for Low-Risk Investing in Today's Economy
Dunnan, Nancy
Paperback
Planet Money: A Guide to the Economic Forces That Shape Your Life
Mayyasi, Alex
Hosts of Npr's Planet Money
Hardcover
Money Unlocked: How to Make It, Keep It and Multiply It: The New York Times Bestseller
Lee, John
Paperback
The Millionaire Next Door: The Surprising Secrets of America's Wealthy
Stanley, Thomas J., PH. D.
Danko, William D., PH. D.
Paperback
The New AI Stock Edge: How the Pros Spot Tomorrow's IPO Leaders Before the Crowd
Smith, William K.
Hardcover
I Will Teach You to Be Rich: No Guilt. No Excuses. Just a 6-Week Program That Works (Second Edition)
Sethi, Ramit
Paperback
Poor Charlie's Almanack: The Essential Wit and Wisdom of Charles T. Munger
Munger, Charles T.
Hardcover
J.K. Lasser's Your Income Tax 2027: For Preparing Your 2026 Tax Return
J K Lasser Institute
Paperback
J.K. Lasser's Your Income Tax 2026: For Preparing Your 2025 Tax Return
J K Lasser Institute
Paperback
How to Invest in Gold and Silver: A Complete Guide with a Focus on Mining Stocks
Durrett, Don
Paperback
Market Wizards: The Next Generation: The World's Top Young Traders Reveal How They Beat the Market
Coyle, George F.
Schwager, Jack D.
Hardcover
The Little Book of Common Sense Investing: The Only Way to Guarantee Your Fair Share of Stock Market Returns
Bogle, John C.
Hardcover
The Price of Democracy: The Revolutionary Power of Taxation in American History
Williamson, Vanessa S.
Hardcover
La Psicología del Dinero: 18 Claves Imperecederas Sobre Riqueza Y Felicidad / The Psychology of Money
Housel, Morgan
Paperback
The Investor's Odyssey: Resisting the Sirens and Playing the Long Game
Mayer, Christopher W.
Hardcover
The Making of a Permabear: The Perils of Long-Term Investing in a Short-Term World
Grantham, Jeremy
Hardcover
The Compounders: From Small Acquisitions to Giant Shareholder Returns
Nyland, Kjetil
Hadziefendic, Adnan
Dybvad, Oddbjørn
Paperback
The Intelligent Investor Third Edition: The Definitive Book on Value Investing
Graham, Benjamin
Zweig, Jason
Paperback
A Beginner's Guide to the Stock Market: Everything You Need to Start Making Money Today
Kratter, Matthew R.
Paperback
How to Make Money in Stocks: A Winning System in Good Times and Bad, Fourth Edition
O'Neil, William J.
Paperback
The Age of Surveillance Capitalism: The Fight for a Human Future at the New Frontier of Power
Zuboff, Shoshana
Paperback
Trading: Technical Analysis Masterclass: Master the financial markets
Schlotmann, Rolf
Czubatinski, Moritz
Paperback
Money to Burn: The Unvarnished Truth about Leon Black, Apollo, and the Rise of a New Wall Street
Cohan, William D.
Hardcover
The World for Sale: Money, Power, and the Traders Who Barter the Earth's Resources
Blas, Javier
Farchy, Jack
Paperback
The Coffee Can Investor: A Stock-Picker's Journey to Build Generational Wealth
Khemlani, Neeraj
Hardcover
Retirement Planning Guidebook: Navigating the Important Decisions for Retirement Success
Pfau, Wade
Paperback
El Inversor Inteligente: Un Libro de Asesoramiento Práctico = The Intelligent Investor
Graham, Benjamin
Paperback
The Intelligent Investor, 3rd Ed.: The Definitive Book on Value Investing
Graham, Benjamin
Zweig, Jason
Hardcover
One Up on Wall Street: How to Use What You Already Know to Make Money in the Market
Lynch, Peter
Paperback
Tax-Free Wealth: How to Build Massive Wealth by Permanently Lowering Your Taxes
Wheelwright, Tom
Paperback
The Black Swan: Second Edition: The Impact of the Highly Improbable: With a New Section: On Robustness and Fragility
Taleb, Nassim Nicholas
Paperback
HBR Guide to Buying a Small Business: Think Big, Buy Small, Own Your Own Company
Ruback, Richard S.
Yudkoff, Royce
Paperback
The Rules That Make Us: How Culture Shapes the Way We Act, Think, Believe, and Buy
Sweet, Oliver
Hardcover
A History of the United States in Five Crashes: Stock Market Meltdowns That Defined a Nation
Nations, Scott
Paperback
The Customer Service Survival Kit: What to Say to Defuse Even the Worst Customer Situations
Gallagher, Richard
Paperback
Your Retirement Sketchbook: 125 Retirement Planning Lessons from Financial Experts
Treichel, Bonnie
Hopkins, Jamie P.
Paperback
Quality Investing: Owning the Best Companies for the Long Term
Cunningham, Lawrence a.
Eide, Torkell T.
Hargreaves, Patrick
Hardcover
Broken Money: Why Our Financial System is Failing Us and How We Can Make it Better
Alden, Lyn
Paperback
Friends That Invest: Your Guide to Financial Independence Through Shares and Stocks
Kaur, Simran
Paperback
Poor Charlie's Almanack: The Essential Wit and Wisdom of Charles T. Munger
Munger, Charles T.
Paperback
Profit First: Transform Your Business from a Cash-Eating Monster to a Money-Making Machine
Michalowicz, Mike
Hardcover
Anti-Fascist Economics: In Defense of Affordability, Dignity, and Democracy
Weber, Isabella
Hardcover
Understanding Living Trusts(R): How You Can Avoid Probate, Keep Control, Save Taxes, and Enjoy Peace of Mind
Schumacher, Vickie
Paperback
Financial Intelligence: A Manager's Guide to Knowing What the Numbers Really Mean
Knight, Joe
Berman, Karen
Hardcover
Trading in the Zone: Master the Market with Confidence, Discipline, and a Winning Attitude
Douglas, Mark
Hardcover
The New Money Strategy: The Modern Guide to Rational, Long-Term Investing
Van Der Kolk, Brandon
Hardcover
The Winner's Curse: Behavioral Economics Anomalies, Then and Now
Thaler, Richard H.
Imas, Alex
Hardcover
Predictably Irrational, Revised and Expanded Edition: The Hidden Forces That Shape Our Decisions
Ariely, Dan
Paperback
Hide Your Assets and Disappear: A Step-By-Step Guide to Vanishing Without a Trace
Pankau, Edmund
Paperback
Alchemy: The Dark Art and Curious Science of Creating Magic in Brands, Business, and Life
Sutherland, Rory
Paperback
J.K. Lasser's 1001 Deductions and Tax Breaks 2026: Your Complete Guide to Everything Deductible
Weltman, Barbara
Paperback
Small Time Operator: How to Start Your Own Business, Keep Your Books, Pay Your Taxes, and Stay Out of Trouble
Kamoroff, Bernard B.
Paperback
The Complete Turtletrader: How 23 Novice Investors Became Overnight Millionaires
Covel, Michael W.
Paperback
Rich Family Smart Family: Raise Your Family's Financial IQ and Take Control of Your Future
Kiyosaki, Robert
Paperback
Payments Systems in the U.S.: A Guide for the Payments Professional
Benson, Carol Coye
Jones, Russ
Loftesness, Scott
Paperback
The Million-Dollar Financial Services Practice: A Proven System for Becoming a Top Producer
Mullen Jr, David J.
Paperback
Finance Equations & Answers: A Quickstudy Laminated Reference Guide
Florida Institute of Finance
Other
The Millionaire Next Door: The Surprising Secrets of America's Wealthy
Stanley, Thomas J.
Danko, William D.
Hardcover
The Most Important Thing Illuminated: Uncommon Sense for the Thoughtful Investor
Marks, Howard
Hardcover
Wired on Wall Street: The Rise and Fall of Tipper X, One of the Fbi's Most Prolific Informants
Hardin, Tom
Hardcover
The Currencies of Wellness: A Field Guide to the Unexpected Ways Brands Can Shape Everyday Well-Being
Nichols, Tricia
Paperback
Our Dollar, Your Problem: An Insider's View of Seven Turbulent Decades of Global Finance, and the Road Ahead
Rogoff, Kenneth
Paperback
Financial Literacy for All: Disrupting Struggle, Advancing Financial Freedom, and Building a New American Middle Class
Bryant, John Hope
Paperback
The Infographic Guide to Personal Finance: A Visual Reference for Everything You Need to Know
Lariviere, Elisabeth
Cagan, Michele
Paperback
Investing 101: From Stocks and Bonds to Etfs and Ipos, an Essential Primer on Building a Profitable Portfolio
Cagan, Michele
Hardcover
The Tax and Legal Playbook: Game-Changing Solutions to Your Small Business Questions
Kohler, Mark
Paperback
El Dinero No Es El Problema, Tú Lo Eres - Money is Not the Problem Spanish
Douglas, Gary M.
Heer, Dain
Paperback
No Loose Ends: The Smart & Slightly Morbid Guide to Estate Planning & End-Of-Life Tasks
Zuckerman, Adam
Hardcover
Stop Making Stupid Investments: 7 Rules to Avoid the Hype and Build Real Wealth
Leiter, David
Hardcover
Trade Like a Stock Market Wizard: How to Achieve Superperformance in Stocks in Any Market
Minervini, Mark
Hardcover
Easy Money: Cryptocurrency, Casino Capitalism, and the Golden Age of Fraud: The Basis for the Documentary Everyone Is Lying to You for Money
Silverman, Jacob
McKenzie, Ben
Paperback
SEVENTEEN TO MILLIONAIRE You're Seventeen. You're Canadian. You wanna be rich. Let's do this.
Price, Douglas
Paperback
Maximize Your Retirement: The Only Book You'll Ever Need to Retire Prosperous and Worry-Free
Oh, Jae
Paperback
The Capital Order: How Economists Invented Austerity and Paved the Way to Fascism
Mattei, Clara E.
Paperback
Best Loser Wins: Why Normal Thinking Never Wins the Trading Game - Written by a High-Stake Day Trader
Hougaard, Tom
Paperback
Sideways: Using the Power of Technical Analysis to Profit in Uncertain Times
Richards, Keith G.
Paperback
The Mental Game of Trading: A System for Solving Problems with Greed, Fear, Anger, Confidence, and Discipline
Tendler, Jared
Paperback
Mastering Private Equity: Transformation Via Venture Capital, Minority Investments and Buyouts
White, Bowen
Prahl, Michael
Zeisberger, Claudia
Hardcover
J.K. Lasser's Small Business Taxes 2026: Your Complete Guide to a Better Bottom Line
Weltman, Barbara
Paperback
Fooled by Randomness: The Hidden Role of Chance in Life and in the Markets
Taleb, Nassim Nicholas
Paperback
The World for Sale: Money, Power, and the Traders Who Barter the Earth's Resources
Farchy, Jack
Blas, Javier
Hardcover
The Book on Rental Property Investing: How to Create Wealth with Intelligent Buy and Hold Real Estate Investing
Turner, Brandon
Paperback
Como Gane $2,000,000 En La Bolsa / How I Made $2,000,000 in the Stock Market
Darvas, Nicolas
Paperback
Masters of the Universe: Winning Strategies of America's Greatest Dealmakers
Kadlec, Daniel J.
Paperback
Elliott Wave - Fibonacci High Probability Trading: Master The Wave Principle and Market Timing With Proven Strategies
Sanders, Jarrod
Paperback
Layered Money: From Gold and Dollars to Bitcoin and Central Bank Digital Currencies
Bhatia, Nik
Paperback
Money and Me: How to Make Your Finances Work Harder for You and Your Family
Clements, Jonathan
Paperback
Fixed: Why Personal Finance Is Broken and How to Make It Work for Everyone
Campbell, John Y.
Ramadorai, Tarun
Hardcover
The Accounting Game: Basic Accounting Fresh from the Lemonade Stand
Mullis, Darrell
Orloff, Judith
Paperback
You Can Be a Stock Market Genius: Uncover the Secret Hiding Places of Stock Market Profits
Greenblatt, Joel
Paperback
Covered Calls for Beginners: A Risk-Free Way to Collect "Rental Income" Every Single Month on Stocks You Already Own
Publications, Freeman
Paperback
A Richer Retirement: Supercharging the 4% Rule to Spend More and Enjoy More
Bengen, William P.
Hardcover
Financial Statements: A Step-By-Step Guide to Understanding and Creating Financial Reports (Over 200,000 Copies Sold!)
Ittelson, Thomas
Paperback
