Quant Science Profile picture
Develop profitable trading strategies, build a systematic trading process, and trade your ideas with Python—even if you’ve never done it before.
15 subscribers
Feb 1 17 tweets 5 min read
12 Python libraries for free market data everyone should know: Image 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…
Jan 30 6 tweets 3 min read
How to bootstrap your own mini hedge fund in 2026 (Learn these skills): Image Skills to begin with (ranked in order of importance):

1. Python
2. Pandas
3. Numpy
4. Plotly
5. Scikit Learn

This is your Python foundation.

Then learn these: 👇 Image
Jan 29 16 tweets 3 min read
Top 10 Algorithmic Trading Strategies (and how they work) 🧵 Image 1. Pairs Trading

Trades two correlated instruments simultaneously. It goes long on one asset and short on the other to profit from deviations from their historical relationship, expecting the correlation to eventually resume.
Jan 28 10 tweets 3 min read
Python is wild for finance.

You can get FinViz in Python for free (this is how):

(a thread) Image 1. What is finvizfinance?

finvizfinance is a package that collects financial information from FinViz website. It has:

- Stock charts, fundamental & technical information
- Insider information
- Stock news
- Forex charts
- Crypto charts

Here's some examples of what you can do: Image
Jan 26 14 tweets 4 min read
Stock Prediction AI: Using Machine Learning and Deep Learning to predict stock price movements in Python.

The Python code is 100% free on GitHub.

Let's dive in (bookmark this): Image 1. The Python Machine Learning and Deep Learning Libraries:

- mxnet
- gluon
- sklearn
- xgboost Image
Jan 25 9 tweets 4 min read
The secret of hedge funds is revealed in a 41-page PDF:

This paper analyzed 464 stocks that 10X-ed over a 24-year period.

Here are the best factors that drive outperformance: (number 3 is the best 🧵) Image 1. Size Effect

"Small-cap stocks outperform medium and large companies in 11 out of 12 cases"

Smaller stocks tend to perform better, but it's not the only contributor. Image
Jan 25 8 tweets 3 min read
A 23-page research paper reveals the number 1 method Hedge Funds use to beat the market:

Time Series Momentum

This is how: 🧵 Image 1. What Is Time Series Momentum?

Time Series Momentum (TSMOM) bets on trends continuing. If a stock’s up, buy more; if down, sell. A 2011 study of 58 assets proved it works! Image
Jan 22 9 tweets 3 min read
According to Ray Dalio, the easiest way to adjust for risk is to seek uncorrelated returns.

Ray's made billions from a simple idea.

Here's how to do it in a few lines of Python code: Image Step 1: Collect Stock Data

Run this code to download free stock price data from Yahoo Finance. Image
Jan 11 10 tweets 4 min read
Python is wild for finance.

You can get FinViz in Python for free (this is how):

(a thread) Image 1. What is finvizfinance?

finvizfinance is a package that collects financial information from FinViz website. It has:

- Stock charts, fundamental & technical information
- Insider information
- Stock news
- Forex charts
- Crypto charts

Here's some examples of what you can do: Image
Jan 8 11 tweets 4 min read
Automate your trading strategies in Python

How to build your first trading bot:

(a thread) Image 1. What is a trading bot?

A trading bot is a software program that automates buying and selling financial assets like stocks and cryptocurrencies based on pre-defined strategies and rules.

These automated systems can manage portfolios without human intervention, operating 24/7.
Jan 7 8 tweets 3 min read
🚨BREAKING: A new open-source multi-agent LLM trading framework in Python

It's called TradingAgents.

Here's what it does (and how to get it for FREE): 🧵 Image 1. What is TradingAgents

TradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world hedge funds.
Jan 6 12 tweets 4 min read
🚨 BREAKING: I just stumbled upon this Machine Learning Python library for Algorithmic Trading that looks insane.

It's called AlphaPy.

This is what it does: Image AlphaPy is a machine learning framework for both speculators and data scientists.

It is written in Python with the scikit-learn and pandas libraries, as well as many other helpful libraries for feature engineering and visualization.

Here's some of what it does:
Jan 4 10 tweets 4 min read
How to make a simple algorithmic trading strategy with a 472% return using Python.

A thread. 🧵 Image This strategy takes advantage of "flow effects", which is how certain points in time influence the value of an asset.

This strategy uses a simple temporal shift to determine when trades should exit relative to their entry for monthly boundary conditions. Image
Jan 1 9 tweets 3 min read
According to Ray Dalio, the easiest way to adjust for risk is to seek uncorrelated returns.

Ray's made billions from a simple idea.

Here's how to do it in a few lines of Python code: Image Step 1: Collect Stock Data

Run this code to download free stock price data from Yahoo Finance. Image
Jan 1 16 tweets 3 min read
Top 10 Algorithmic Trading Strategies (and how they work) 🧵 Image 1. Pairs Trading

Trades two correlated instruments simultaneously. It goes long on one asset and short on the other to profit from deviations from their historical relationship, expecting the correlation to eventually resume.
Dec 31, 2025 18 tweets 5 min read
12 Python libraries for free market data everyone should know: Image 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…
Dec 30, 2025 13 tweets 4 min read
Stock Prediction AI: Using Machine Learning and Deep Learning to predict stock price movements in Python.

The Python code is 100% free on GitHub.

Let's dive in (bookmark this): Image 1. The Python Machine Learning and Deep Learning Libraries:

- mxnet
- gluon
- sklearn
- xgboost Image
Dec 30, 2025 8 tweets 3 min read
The secret of hedge funds is revealed in a 41-page PDF:

This paper analyzed 464 stocks that 10X-ed over a 24-year period.

Here are the best factors that drive outperformance: (number 3 is the best 🧵) Image 1. Size Effect

"Small-cap stocks outperform medium and large companies in 11 out of 12 cases"

Smaller stocks tend to perform better, but it's not the only contributor. Image
Dec 29, 2025 9 tweets 3 min read
A 23-page research paper reveals the number 1 method Hedge Funds use to beat the market:

Time Series Momentum

This is how: 🧵 Image 1. What Is Time Series Momentum?

Time Series Momentum (TSMOM) bets on trends continuing. If a stock’s up, buy more; if down, sell. A 2011 study of 58 assets proved it works! Image
Dec 24, 2025 11 tweets 4 min read
My quant hedge fund's data pipeline.

(Data Sources → Storage → Validation)

Here's everything I do (3 years of building): Image 1. Data Layer

The data layer is absolutely critical to my Quant Hedge Fund in Python.

It's where our universe of stock and ETF data is tracked.

Without this data, there is no strategy research. So this part is super critical. Image
Dec 19, 2025 5 tweets 2 min read
Python is mind-boggling for finance.

Case in point: There's a Finance database of 300,000 tickers.

Available 100% for free: Image It's called the Finance Database.

And you can get it on GitHub here: github.com/JerBouma/Finan…