this repo by Goldman Sachs quants feels ILLEGAL in trading...
Goldman pays each quant ~$700k/year for skills that you can HIRE in your Claude Code for free
it's called gs-quant, built and maintained by Goldman's own quants - 12.9k stars
first understand how it works:
1. Goldman's quants wrote the skill themselves: 8 files, 1847 lines - it teaches Claude their toolkit: pricing, risk, portfolios, market data, backtests, swaps, swaptions, FX options, delts hedging, transaction costs - all in there.
It even lists errors you'll hit and how to fix them..
2. Claude pulls it in every time it writes gs-quant code and the risk math runs right on your laptop: volatility, drawdown, z-scores, beta, RSI
here's is how to run it yourself for FREE:
1. Open Claude Code and install Goldman's library: pip install gs-quant or send this repo - https://t.co/0eJWsAxdpz
2. add skill: python -m gs_quant.skills install --global
3. ask Claude to pull 5 years of daily prices for any stock and SPY with finance
4. run Goldman's risk math on it: volatility, max drawdown, z-scores, Bollinger bands, RSI
5. check the 60-day beta and correlation vs SPY. Is it the stock moving, or just the market?
6. flag every day the z-score fell below -2. That's when the price was 2 standart deviations below normal
7. backtest one rule: buy under -2, sell back at 0, with fees. Claude writes it and runs it on your laptop
8. compare it to just holding the stock. if it doesn't beat buy-and-hold after fees, it's not an edge
I'm done talking:
Almost everything I've written in twenty one years of GMI traces back to two things... debt and demographics.
An ageing population means slower growth, and slower growth means more debt to paper over the gap. Thats The Everything Code.
But something else is now sitting on top of it. AI, robotics, energy and crypto are all hitting their exponential curves at the same time. The Exponential Age is where the debt problem and the technology collide, and what comes out the other side is a very different world.
This is seven minutes on how it all fits together. The long version is in my book, out 3rd November.
And until tonight, when you preorder The Everything Code I’ll send you the September GMI report free.
The issue is called The New Macro, and its about what that collision looks like right now. It looks at which risks the bears are pricing wrongly, which ones could actually derail it, and the five numbers that would tell me I'm wrong.
GMI is normally members only, so this is the only way most people will ever read one.
How to claim it below.
I've been a professional bond trader for 35 years. 18 at the greatest bond trading house in history and the balance at two of the greatest hedge fund bond trading firms in history. You be the judge if I know how to trade bonds.
I sell my macro research to a dozen of the biggest hedge funds on the planet. They seem to value my insight on bond trading as do my clients at https://t.co/y3nT9PareS. Perhaps a disgraced equity trader who poses as a kitty knows more than me but that's for others to decide
Here's how bonds work.
Did you know that if you buy a two year bond at 5% yield and hold it for 2 years you make 5% per year for two years no matter what interest rates do in the meantime. It's called fixed income for a reason. Of course you could instead buy 1 year bills at 5.37% and after 1 year roll to another 1 year bill. As long as bills are over roughly 4.63% yield in 1 year you'd be better off than buying two year bonds today. Worst case they yield 0 and then you underperform modestly. That's how cash bond investing works and I own a lot of short dated cash bonds in my beta account. BUT.
Speculating directionally with leverage is a completely different beast. If you buy the TUA ETF today 22.06 you are buying a 5X levered position on the two year note future. If the CPI is hot tomorrow and two year interest rates go up to 5.25 two year note futures will fall by from 101 16 to 101 and TUA will fall 2.5% in a single day. Similarly if CPI is cold two year note futures will rally and TUA will go up 2.5% in a single day.
This is how bond traders at hedge funds at Salomon Brothers (in the old days) and at every fixed income floor on the planet think about bond trading for alpha.
They don't use stupid long term "investing" bond math and ignore the return on cash foregone when shifting money from cash to bonds
They use bond math to make absolute returns. They buy bond futures when they think yields will fall and sell them when they think yields will rise and trade them like any other future, option, or levered cash investment.
I have been bearish bonds for about two months. I have made 7% unlevered return in excess of returns in cash on that position. I am still short bonds if I am correct and who knows if I will be I expect to earn another 7% on my bond position in the next two months. That's pretty sweet earning 14% in 4 months.
I also will go long bonds soon. Perhaps long two's in a levered fashion as early as tomorrow because I trade bonds. But if you got sucked into buying a levered position or even an unlevered position in bonds when Kitty told you to buy your out 7% and will be holding that bag for a year and a half before you get your money back if your lucky. If your leveraged as a real bond trader would be you have been stopped out.
Earlier today The Bear Cave published a list of some of our favorite Twitter accounts for short idea generation.
Here are our top eight favorites:
1/ @RagingVentures – Long and short ideas from Bill Martin, former PM of Raging Capital. Bill published a famous thread about the weakness of Silicon Valley Bank months before its collapse
2/ @AlderLaneEggs – Unfiltered thoughts from Marc Cohodes, early to blow the whistle on FTX, Signature Bank, MiMedx, and many other frauds
3/ @WallStCynic – A dude from Wisconsin tweeting about shorts
4/ @DeepSailCapital – Long/short equities, amazing predictions on 2021 bubble stocks, recent prediction on AI bubble stocks, and semi-regular threads on short ideas
5/ @LogicalThesis – Wicked sharp private investor sharing off-the-beaten-path short ideas
6/ @eliant_capital – Super sharp long/short equities trader. Was very early on Signature Bank, Silvergate Bank, Coinbase, and others
7/ @Seawolfcap – Excellent tweets from Porter Collins a long/short PM and one of the protagonists of The Big Short. Very savvy on financials
8/ @BlueDuckCap – Long/short equities, smart, interesting tweets on Disney, big pharma, and Fox Corp
Subscribe to read the full list: https://t.co/tO9RTEBUAi
How to find new investments? 🧵
Some hedge fund letters offer really fertile 💰💰💰 hunting grounds and are in the public domain.
👇A list of 20 funds with in-depth stock pitches in their letters 👇
I scan these regularly and have made a handful of lucrative picks already.
Beep beep trade bonds boop.
If you've come here to find my threads on things like the BBB series, backtesting or random macro musings, they are compiled into Moments and added below for easy referencing.
Enjoy and remember kids, "Embrace the carry and ignore the fat left tail."