PyQuant News šŸ Profile picture
Where finance practitioners get started with Python for quant finance, algorithmic trading, and data analysis | Tweets & threads with free Python code & tools.
39 subscribers
Jan 10 • 12 tweets • 4 min read
My PhD professors taught me MATLAB during my master's degree.

So I watched 200 YouTube videos to learn Python

96% of them were a complete waste of time.

But these 8 taught me more than all my PhD professors combined: Algorithmic Trading Using Python (4.5 hours)

Learn how to perform algorithmic trading using Python in this complete course. Algorithmic trading means using computers to make investment decisions.

Dec 31, 2025 • 19 tweets • 5 min read
17 free Python GitHub repos for quant finance and algo trading: Goldman Sachs

github.com/goldmansachs
Dec 22, 2025 • 21 tweets • 6 min read
Algorithmic trading is the domain of secretive hedge funds and banks.

Python unlocked these secrets for everyone (even Goldman Sachs has an open-source tool).

Use the same tools the professionals use.

Here are 17 Python libraries that open the black box: Image OpenBB Terminal

Terminal for investment research for everyone.

github.com/OpenBB-finance…
Dec 17, 2025 • 17 tweets • 5 min read
13 Python libraries for free market data everyone should know: Theta Data

Real-time and historic, high-resolution, tick data for stocks and options. Theta Data is not free but there is a generous free tier and it's one of the cheapest sources of options data on the market.

thetadata.net
Dec 15, 2025 • 13 tweets • 4 min read
Missiles, robots, and traffic.

Nothing to do with quant finance, right?

Quants use the Kalman filter to predict future observations of hidden variables.

You can use it too-with Python.

Without the explosions: Image A quick primer on the Kalman filter if you’re unfamiliar:

• Invented to track missiles in space
• Uses noisy data to improve at each time step
• Traders use it to uncover the ā€œtrue stateā€ of a time series

Python makes it dead simple to use the Kalman filter.

Here’s how:
Dec 9, 2025 • 22 tweets • 6 min read
Save your $90,000 and skip the quant finance degree.

Dive into 17 code repos that will teach you more than all your professors at school.

All without costing you $90,000: Image OpenBB

Workspace for investment research for everyone.

github.com/OpenBB-finance…
Dec 2, 2025 • 8 tweets • 2 min read
RenTec uses Hidden Markov Models in trading.

The technique generated 60% returns per year over 30 years.

One of the co-founders of RenTec's name is in the algorithm!

Here's how it works: Image A Hidden Markov Model (HMM) is a statistical model used to represent systems that evolve over time with unobservable (hidden) states.

It is widely applied in areas such as natural language processing, speech recognition, and bioinformatics.

And in trading:
Nov 30, 2025 • 10 tweets • 3 min read
Quants use the volatility surface to price exotic options, calibrate models, and find mispricings.

You can build your own volatility surface with Python: Image First, get the options chain data. Image
Nov 27, 2025 • 7 tweets • 2 min read
During my master's degree, I read 65 books on quant finance.

Most of them were useless.

But these 4 are still on my shelf 10 years later.

And they should be on yours too: Image Linear and Nonlinear Programming by David G Luenberger and Yin Ye

What you learn:

Optimization theory and its applications, covering both linear and nonlinear programming with a focus on practical problem-solving techniques. Image
Nov 17, 2025 • 16 tweets • 5 min read
Some market data costs $1,400 per month.

The oil that makes the world's financial markets operate.

Unaffordable for 99% of us.

A profit center for countless Wall Street firms.

Fight back.

Here are the 12 Python libraries that give it to you free: yfinance

Data for stocks (historic, intraday, fundamental), FX, crypto, and options. Uses Yahoo Finance so any data available through Yahoo is available through yfinance.

github.com/ranaroussi/yfi…
Oct 26, 2025 • 21 tweets • 6 min read
Algorithmic trading is the domain of secretive hedge funds and banks.

Python unlocked these secrets for everyone (even Goldman Sachs has an open-source tool).

Use the same tools the professionals use.

Here are 17 Python libraries that open the black box: Image OpenBB

Workspace for investment research for everyone.

github.com/OpenBB-finance…
Oct 7, 2025 • 16 tweets • 3 min read
I used to think Claude Code was worthless.

It turns out I was using it wrong.

Once I figured it out, my productivity increased 10X overnight.

Here's the guide you need: Image The unlock for me was to create detailed MD files in the commands and agents directory.

• Accessible through /
• Details what Claude can do
• Easy to version and share

But this is what really changed the game:
Sep 6, 2025 • 11 tweets • 4 min read
In the age of AI, Jupyter Notebook is the most powerful tool Python developers have.

But most people don’t know the hidden features.

Need a quick web app?

Or create REST APIs?

Here are the 6 ways to use Jupyter Notebook (you never knew existed): The notebook to rule them all. Jupyter Notebook is a web app for creating and sharing computational documents.

When I say powerful, here's what I mean:

• It supports 40 languages
• Produces rich, interactive output
• Leverages big data tools like Spark

So, what else can we do with Jupyter Notebook?
Aug 31, 2025 • 12 tweets • 4 min read
Myth:

You need a computer science degree to get started with Python, NumPy, and pandas.

Reality:

You need these 8 YouTube videos: "Python Pandas" by Corey Schafer

Learn the basics of creating and manipulating data frames, indexing and selecting data, and cleaning and manipulating data in Pandas.

Aug 24, 2025 • 13 tweets • 4 min read
Statistical arbitrage is scary sh*t.

That's what I used to think until I spent 25 hours studying pairs trading.

Now I realize it's a great way to get started with algorithmic trading.

Here’s how to build a pairs trading strategy in Python.

Step by step: By replicating this framework, you’ll be able to:

1. Get stock price data
2. Find cointegrated pairs
3. Model the spread
4. Trade the strategy

What is pairs trading anyway?
Aug 20, 2025 • 10 tweets • 4 min read
Python is the new Excel.

So don't be the only one stuck with 1,048,576 rows.

6 links to help you quickly get started with Python now: Image The Ultimate Beginner’s Guide to NumPy

What you'll learn: NumPy is the foundation for all data-driven libraries in Python. Understanding the basics will help you learn other libraries like Pandas and get an edge on your peers.

towardsdatascience.com/the-ultimate-b…
Aug 18, 2025 • 8 tweets • 2 min read
You can use options to predict stock price moves.

Here’s how: Image Options traders are well-informed. Their expectations of future stock price moves are often priced into options. We can use options prices to extract the options market’s expectations of stock price moves.

If we know where to look…
Aug 12, 2025 • 11 tweets • 4 min read
My PhD professors taught me MATLAB during my master's degree.

So I watched 200 YouTube videos to learn Python

96% of them were a complete waste of time.

But these 8 taught me more than all my PhD professors combined: Setting up Interactive Brokers API with Python

This video shows how to use Python with the Interactive Brokers API to automate a first strategy—cutting through its complexity in one clear walkthrough.

Aug 2, 2025 • 13 tweets • 2 min read
Every piece of trading advice I could think of after 20+ years trading, 20+ years writing code, and 15+ years as a quant:

1. Bulls make money. Bears make money. Pigs go to slaughter. (Thanks Dad.) 2. Never add to a losing trade.
3. The best way to burn out learning Python is to learn stuff you can't actually use.
4. Fight on the winning side and be willing to change sides when one side has gained the upper hand.
Jul 19, 2025 • 9 tweets • 3 min read
RenTec uses Hidden Markov Models in trading.

The technique generated 60% returns per year over 30 years.

One of the co-founders of RenTec's name is in the algorithm!

Here's how it works: Image A Hidden Markov Model (HMM) is a statistical model used to represent systems that evolve over time with unobservable (hidden) states.

It is widely applied in areas such as natural language processing, speech recognition, and bioinformatics.

And in trading:
Jul 10, 2025 • 14 tweets • 5 min read
There are 137,000 Python libraries.

But you only need 11 for quant finance: pandas

• Allows quick data cleaning and preprocessing
• Provides DataFrame structure for time-series data
• Enables complex data operations with simple syntax

Use it for:

Manipulating and transforming financial market data. Image