[Media] Building a Rust TUI trading terminal

91 points harsh611 10 comments
[Media] Building a Rust TUI trading terminal

Building a Rust TUI trading terminal

Why TUI based?

Wanted to build a keyboard first options trading terminal. Did lot of research, turned out no GUI apps can be truly keyboard first

Hence, opted for Rust TUI framework - Ratatui

Why Rust?

  1. Wanted to build a zero runtime dependency application.

Python’s Textualize framework would have been faster and easier to iterate this POC but requires Python runtime which adds a friction for user onboarding.

  1. Application is calculation heavy

Terminal fetches data every one second and recalculates the payoff for an option strategy. Long term goal is to fetch every 0.5 seconds.

Hence Rust felt more future proof