4 Posts
Tag: Python

BY eric
Oct 20, 2026
Measuring Order Book Imbalance in Code
Turning discretionary depth reading into numbers you can test. Python code for order book imbalance, microprice, a protection ratio, a resistance score and an auction mispricing feature, plus how to label and evaluate them honestly without fooling yourself.

BY eric
Aug 19, 2026
Debugging a Fake 410: yt-dlp, curl_cffi, and a Proxy That Lied
A yt-dlp download kept failing with 'HTTP Error 410: Gone' even on the latest version. The real cause was three layered problems stacked on top of each other: missing TLS impersonation, a narrow curl_cffi version-compatibility window, and an unrelated proxy gateway fault that looked exactly like a library bug.

BY eric
May 12, 2025
Building Blocks of Algorithmic Trading: Collecting End-of-Day Data
In this article, we explore the essential sources of EOD data and demonstrate how to store and access it efficiently using Redis, a high-performance in-memory database.

BY eric
May 27, 2024
Building a Trading Gateway (Bot) with MetaTrader 5 Python Library - Part 1
A tutorial about implementing a trading gateway with MetaTrader 5 Python library.
