blankly-finance/blankly — reverse-engineered prompt
Reverse engineered prompt
Build me a simple Python library for algorithmic trading that makes it easy to write a strategy once and then either backtest it, paper trade it, or run it live with almost no code changes. I want one consistent interface across common brokers and exchanges for stocks, crypto, forex, and futures, especially things like Alpaca, Coinbase, Binance, and OANDA where supported. It should feel beginner friendly, with a quick setup command that creates the basic config files and a sample bot.
Please include a model or strategy pattern, market orders and account access, scheduling and websocket style events, and a backtesting engine that can use both price data and custom event data like tweets or JSON events. Add a few example strategies like RSI or moving average crossover, plus tests and clear docs so someone can get from install to first bot quickly.
Keep the developer experience smooth and practical, and look up current docs online if you need to.
Want more depth? Deep Reverse