PyQuant News 🐍
PyQuant News 🐍

@pyquantnews

21 Tweets 55 reads Jan 13, 2023
Backtest a trading strategy with Backtrader
When you're ready, use a backtesting framework to analyze the risk and performance metrics of your strategy.
This Notebook walks you through a backtest with bt.
Price options with the Edgeworth model
Pricing models assume stock returns are normally distributed. They're not. The Edgeworth model introduces skew and kurtosis.
This Notebook shows you how to price an option with the Edgeworth odel.
Use GARCH to forecast volatility
Quants use volatility forecasting to find market mispricings. Most volatility forecasts start with GARCH.
This Notebook shows you how you find market mispricings.
Python basics tutorial and walkthrough
If you're just getting started with Python, you need a good walkthrough of the basics.
This Notebook shows you how to get started with Python.
NumPy tutorial and walkthrough
The entire Python quant stack is based on NumPy. It's the standard tool for all scientific computing in Python.
This Notebook shows you how to use it.
pandas tutorial and walkthrough
Working with data starts with pandas. It's the standard tool for data manipulation in Python. It was started by a hedge fund.
This Notebook walks through the most important parts of pandas.
SciPy tutorial and walkthrough
The statistical functions like probability distributions that underpin quant finance are in SciPy.
This Notebook shows you what you need to use SciPy for quant finance.
yfinance tutorial and walkthrough
To build trading algorithims, you need stock and options data. yfinance is your gateway to free market data.
This Notebook walks you through the basics of using yfinance.
Theta Data tutorial and walkthrough
Historic and real time options data is expensive and hard to find. Theta Data gives you an API to access historic and real time options data.
This Notebook shows you how to use the API.
Riskfolio-Lib tutorial and walkthrough
Teams of Ph.D.s spent decades refining the portfolio optimization. Riskfolio-Lib wraps up dozens of portfolio and risk optimizations in one library.
This Notebook walks you through an example of how to use it.
pyfolio tutorial and walkthrough
Risk and performance reporting is critical for measuring your trading algorithms. pyfolio has a suite of tear sheets that gives you an in-depth view of your portfolio in one line of code.
This Notebook shows you how to use it.
Empyrical tutorial and walkthrough
Don't rebuild the statistical functions you need for risk and performance reporting. Empyrical gives you a library of common risk and performance metrics ready to use.
This Notebook outlines common use cases.
Connect to Interactive Brokers with Python
The first step in automatic execution is connecting to your broker.
This Notebook gives you the code to make the connection.
Risk management with value at risk
Hedge funds and trading firms value at risk to capture probability of losing money. You can use it too.
This Notebook shows you how to build your own value at risk measure.
Risk management with drawdown analysis
Drawdown is an important factor to consider when analyzing trading strategies. It's used to help undertand risk of going broke.
This Notebook calculates drawdown for a stock or portfolio.
Simulate stock prices with Geometric Brownian Motion
The foundation of all derivative pricing is asset price simulation. One of the most common methods is Geometric Brownian Motion.
This Notebook shows you how to simulate stock prices.
Simple order execution on Interactive Brokers with Python
Once you connect, you need to test simple trade execution.
This Notebook shows you how to send simple buy orders to Interactive Brokers.
Advanced algo trading on Interactive Brokers with Python
Once you get the connection set and a trade done, add complexity to your trading algorithms.
This Notebook demonstrates an advanced trading strategy executing on Interactive Brokers.
Store real time market data from Interactive Brokers with Python
All quants need data. The free sources are ok, but if you need something more complex, save it from Interactive Brokers.
This Notebook shows you how to save market data directly from the market.
Some 🤯 IMPROVEMENTS for January:
• CPE credits for CFAs
• Last cohort with FREE lifetime access
• NEW affiliate program that can make you $
• 30 Jupyter Notebooks (10 MORE than November)
• Using the OpenBB SDK for data throughout the course
And more!
Let's dive in!
Get all this plus:
$1,000 at IB
3 templates
10 live sessions
The cheatsheet
70% options data
100% the options ebook
10 presentation modules
30% off the March cohort
A top spot for Trade Blotter
30% the other options ebook
Enrollment for ends Saturday!
gettingstartedwithpythonforquantfinance.com

Loading suggestions...