Where finance practitioners get started with Python for quant finance, algorithmic trading, and data analysis | Tweets & threads with free Python code & tools.
32 subscribed
May 2 • 10 tweets • 3 min read
You can build a stock portfolio to replicate a market index.
Here is the step-by-step process to do it with Python:
Market indices offer investors a quick look at the overall performance of a specific market or sector.
Index replication is a strategy that lets investors mimic the performance of market indices.
Here’s how you can replicate the S&P500 using Python and Riskfolio-Lib:
Apr 27 • 18 tweets • 4 min read
17 Python GitHub repos for quant finance:
Goldman Sachs
That's what I told myself after 6 months of frustration.
Turns out I was just a bad prompt writer.
But I've now spent 200+ hours with it.
And it's my Python developer.
Here's how:
From the beginning, I expected ChatGPT to "know" how to code (and trade).
That was the critical mistake.
I gave it 1-sentence prompts and expected it to write code for me.
But garbage in = garbage out.
So I reframed it:
Dec 21, 2023 • 9 tweets • 2 min read
Use ChatGPT for sentiment analysis on stocks.
The step-by-step guide with code and prompts:
After reading this thread, you’ll be able to:
• Download news headlines in one line of code
• Build a prompt to predict sentiment of the headline
• Bring it all together with LangChain
Let’s do it!
Dec 19, 2023 • 12 tweets • 4 min read
One way to get started with algorithmic trading:
Buying a $120,000 master's degree from MIT.
The other way:
YouTube.
The 10 YouTube videos to get you up and running today:
Algorithmic Trading Using Python - Full Course
A comprehensive course on algorithmic trading using Python.
Dec 16, 2023 • 22 tweets • 7 min read
Google "algorithmic trading" and get 88,300,000 results.
Google "python tutorial" and get 717,000,000 results.
Utterly exhausting.
Impossible to navigate.
So I took 805,300,000 search results, added in 22+ years of experience, and had a baby.
This is what I named it:
Getting Started With Python for Quant Finance.
Get up and running with Python fast:
• Copy-paste code to apply immediately
• Help to debug code and ask questions
• Practical experience you can use now
• Get the Python Quant Stack installed
Here's what's packed inside:
Dec 14, 2023 • 5 tweets • 1 min read
Hedge funds are secretive about their strategies.
This PDF exposes their most successful ones.
Grab it here:
The paper discusses two types of strategies:
1. Arbitrage strategies 2. Macro fund strategies
Here are the details:
Dec 9, 2023 • 12 tweets • 3 min read
I learned MATLAB and Octave (wtf?) during my master's degree.
So I studied 82,112 Python code repos and taught myself Python.
99.9% of them were a complete waste of time.
But these 9 are worth more than my $90,000 master's degree:
Notebooks that replicate original quantitative finance papers from Emanuel Derman.