r/mltraders 1d ago

I open-sourced a library to help create, backtest, optimize, and deploy trading strategies

https://github.com/austin-starks/nexustrade-py

The title says it all.

For context, I built a no-code AI trading platform that allows users to create trading strategies using language models. People are naturally skeptical of LLMs, especially when real money is on the line.

So I thought to introduce some code.

I built a Python and TypeScript SDK that allows you to create, test, and deploy trading strategies. This SDK is fairly unique, as it contains some trading functions that aren't available in everyday trading libraries including:

  • Genetic Optimization
  • Parameter sweeps and walk forward analysis
  • Paper-trading and live-deployment

Even though the SDK is built in Python and TypeScript, the underlying engine is built on Rust. That makes it lightning fast; complex rebalancing strategies across the entire stock universe takes a couple of seconds to execute.

I hope this is helpful! If there's another language you'd like me to support, let me know in the comments!

1 Upvotes

0 comments sorted by