@quantfinancetogo: ➡️ Quantitative Finance from Scratch, part 48: Inventory Risk. A market maker always quotes a price you can buy at (ask) and a price you can sell at (bid) and earns the gap. Its inventory is the stock it holds right now: when you sell to it, the inventory grows, when you buy from it, the inventory shrinks. In a calm market, buyers and sellers arrive about equally often, so the inventory stays near zero. Orders often come in waves. When many people sell at once, the market maker keeps buying and the shares pile up. Then every move in the price hits the whole position. Example: with 5,000 shares, a drop of 10 cents costs $500, as much as the spread earns on 12,500 shares at 4 cents each (P&L = cash + inventory × fair price). So it fights back with its prices. With too much stock, it lowers both its bid and its ask: the cheaper ask attracts buyers, the lower bid brings in fewer sellers, and the inventory shrinks again. With too little stock, it raises both prices. This is called skewing the quotes. When prices move fast, it also widens the spread, and if the position still grows too large, it hedges it or sells part of it. Avellaneda and Stoikov (2008, Quantitative Finance 8(3)) turned this into a formula, the reservation price r = s − q·γ·σ²·(T − t): s fair price, q inventory, γ risk aversion, σ volatility, T − t time left. The more inventory, risk aversion and volatility, the further the quotes move away from the fair price. The code (inv_reel.py, 15 lines of plain Python without packages) is general on purpose: booking a fill, the profit and loss, a half spread that grows with volatility, and quotes around the reservation price. Part 49 looks at the second risk, trading with someone who knows more. If you want to go deeper, check out the full course I built: quantfinancetogo.com #quantfinance #marketmaking #inventoryrisk #finance #python Education only, not financial advice.

QuantFinanceToGo
QuantFinanceToGo
Open In TikTok:
Region: DE
Thursday 12 November 2026 12:32:42 GMT
16224
866
22
43

Music

Download

Comments

mizanriskengine
MIZAN :
The 5,000-share example makes the timing clear. If a customer sells at the bid and nobody takes the ask, the dealer owns the shares. It hasn’t earned the whole four-cent spread yet.
2026-11-21 15:51:19
0
aetherisawake
𝜙 PHASE BRO :
blockchain simply decluters all this nonsense
2026-11-12 13:38:36
1
akhenaton2220
Akhenaton :
correction. There are three major risks. 1. Inventory risk 2. Adverse selection risk. 3. volatility risk.
2026-11-12 13:12:58
4
r26ex
Matias :
Inventory doesn’t just mean long inventory, short positions are also a challenge for market makers to keep neutral.
2026-11-15 00:01:20
1
apieceofart
ART🪎 :
They should have to live with inventory, instead of manipulation
2026-11-14 07:03:59
0
ryanwirger
Ryan :
2026-11-13 01:56:56
0
petey.isom
petey.isom :
buying and selling things that dont exist
2026-11-12 15:02:55
1
To see more videos from user @quantfinancetogo, please go to the Tikwm homepage.

Other Videos


About