Skip to content

A multi-language exploration for the Crypto Bucket HODL Trading Engine construction — a comparative study among Go, Rust, and Python.

Notifications You must be signed in to change notification settings

QuantDevJayson/Addicted-to-HODL-A-Crypto-Engine-Triathlon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Addicted to HODL - A Crypto Engine Triathlon

A multi-language exploration for the Crypto Bucket HODL Trading Engine construction — a comparative study among Go, Rust, and Python.

This project explores how each language handles real-world crypto trading logic, market data ingestion, portfolio management, and engine performance — all within a unified, reproducible testbed.

Objective

  • Build identical trading engines in Go, Rust, and Python
  • Compare their performance, maintainability, and reliability
  • Use a common strategy framework (focused on HODLing behavior)
  • Simulate real-time and historical crypto market conditions
  • Generate logs, visual reports, and metrics for fair comparison

Project Structure

Addicted-to-HODL-A-Crypto-Engine-Triathlon/

├── engines/

│ ├── go_engine/ # Go implementation

│ ├── rust_engine/ # Rust implementation

│ └── python_engine/ # Python implementation

├── data/ # Historical market data & simulation inputs

├── configs/ # Shared strategy configs

├── benchmarks/ # Performance test runners & metrics

├── reports/ # Output results, logs, and plots

└── README.md


Engine Modules (in each language)

Each engine implementation includes:

  • Market Data Feed – Simulated live/historical prices
  • Strategy Core – Basic HODL logic with optional DCA and rebalancing
  • Execution Layer – Portfolio tracking, trade execution, logging
  • Performance Monitor – Latency, memory, and throughput tracking

Benchmarking Criteria

Metric Description
Latency Reaction time to new price ticks
Accuracy Execution correctness under identical inputs
Memory Usage Efficiency in resource consumption

Quickstart

  1. Clone the Repo bash

git clone https://github.com/@QuantDevJayson/Addicted-to-HODL-A-Crypto-Engine-Triathlon.git cd Addicted-to-HODL-A-Crypto-Engine-Triathlon

  1. Run Engines

cd engines/go_engine go run main.go Rust bash

cd engines/rust_engine cargo run --release Python bash

cd engines/python_engine pip install -r requirements.txt python engine.py

Running Benchmarks

cd benchmarks python run_all.py


Benchmark results (execution speed, memory, logs, graphs) will be saved to the /reports/ directory.

Strategy: The HODL Mentality

Each engine uses a shared set of rules to simulate common HODL strategies:

  • Buy on dips greater than X%
  • Periodic rebalancing (optional)
  • Dollar-Cost Averaging (optional)
  • Always HODL unless major reallocation is triggered Strategy configs are language-agnostic and stored in /configs/.

Why This Project?

  • Language Comparison – Real-world side-by-side evaluation
  • Multilang Application – Same logic, same data, no unfair advantages
  • Educational Value – Great for devs learning trading systems
  • Bot Testing Ground – Safe place to prototype trading bots

License

MIT License – Free to use, modify, and share. Attribution appreciated.


Contact the Author:

About

A multi-language exploration for the Crypto Bucket HODL Trading Engine construction — a comparative study among Go, Rust, and Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published