Skip to Content
Hands-On Financial Trading with Python
book

Hands-On Financial Trading with Python

by Jiri Pik, Sourav Ghosh
April 2021
Intermediate to advanced
360 pages
6h 24m
English
Packt Publishing
Content preview from Hands-On Financial Trading with Python

Chapter 8: Introduction to Zipline and PyFolio

In this chapter, you will learn about the Python libraries known as Zipline and PyFolio, which abstract away the complexities of the backtesting and performance/risk analysis aspects of algorithmic trading strategies. They allow you to completely focus on the trading logic.

For this, we are going to cover the following main topics:

  • Introduction to Zipline and PyFolio
  • Installing Zipline and PyFolio
  • Importing market data into a Zipline/PyFolio backtesting system
  • Structuring Zipline/PyFolio backtesting modules
  • Reviewing the key Zipline API reference
  • Running Zipline backtesting from the command line
  • Introduction to the key risk management figures provided by PyFolio

Technical requirements

The Python ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Algorithmic Trading with Python

Hands-On Algorithmic Trading with Python

Deepak K. Kanungo

Publisher Resources

ISBN: 9781838982881Supplemental Content