I made an educational blog post.

Mind you, it is a bit of a tangential topic, but it is about working directly with the TWS API. I figured there might be a few curious engineers here.
https://www.vitaltrades.com/2024/02...ent-with-a-custom-socket-implementation/