brighter-trading/src
rob 51ec74175d Phase 4: Paper trading implementation
- Create PaperStrategyInstance extending StrategyInstance
- Integrate PaperBroker for simulated order execution
- Add trade_order() method translating Blockly calls to broker
- Add mode selection in Strategies.create_strategy_instance()
- Update execute_strategy() to support paper/backtest/live modes
- Include comprehensive tests for paper trading functionality

Paper trading now works with:
- Market and limit orders
- Position tracking with P&L
- Balance management
- Trade history
- Reset functionality

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-28 17:07:34 -04:00
..
brokers Phase 2: Broker abstraction foundation 2026-02-28 17:00:43 -04:00
maintenence I am just about to move most of the strategy statistics tracking to the StrategyInstance 2024-11-22 10:28:39 -04:00
static Fix chart loading and stabilize local runtime 2026-02-28 15:15:56 -04:00
templates Fix chart loading and stabilize local runtime 2026-02-28 15:15:56 -04:00
BrighterTrades.py Phase 1: Repair runtime breakpoints 2026-02-28 16:47:13 -04:00
Configuration.py Refactored DataCache, Database and Users. All db interactions are now all inside Database. All data request from Users now go through DataCache. Expanded DataCache test to include all methods. All DataCache tests pass. 2024-08-19 23:10:13 -03:00
DataCache_v2.py Made a lot of changes to DataCache indicator data is not being saved to the database. 2024-09-15 14:05:08 -03:00
DataCache_v3.py Fix chart loading and stabilize local runtime 2026-02-28 15:15:56 -04:00
Database.py Fix chart loading and stabilize local runtime 2026-02-28 15:15:56 -04:00
Exchange.py Fix chart loading and stabilize local runtime 2026-02-28 15:15:56 -04:00
ExchangeInterface.py Phase 1: Repair runtime breakpoints 2026-02-28 16:47:13 -04:00
PythonGenerator.py The test are running and returning feedback. I am just about to implement a better solution for multithreading 2024-11-13 22:15:35 -04:00
Signals.py Refactored DataCache, Database and Users. All db interactions are now all inside Database. All data request from Users now go through DataCache. Expanded DataCache test to include all methods. All DataCache tests pass. 2024-08-19 23:10:13 -03:00
Strategies.py Phase 4: Paper trading implementation 2026-02-28 17:07:34 -04:00
StrategyInstance.py Phase 1: Repair runtime breakpoints 2026-02-28 16:47:13 -04:00
Users.py Fix chart loading and stabilize local runtime 2026-02-28 15:15:56 -04:00
__init__.py Updated project structure and staged modified files 2024-07-25 08:21:15 -03:00
app.py Phase 0: Stabilize baseline 2026-02-28 16:44:11 -04:00
backtest_result.py Phase 3: Backtest determinism 2026-02-28 17:02:54 -04:00
backtest_strategy_instance.py Phase 2: Broker abstraction foundation 2026-02-28 17:00:43 -04:00
backtesting.py Phase 0: Stabilize baseline 2026-02-28 16:44:11 -04:00
candles.py Phase 1: Repair runtime breakpoints 2026-02-28 16:47:13 -04:00
config.example.py Phase 0: Stabilize baseline 2026-02-28 16:44:11 -04:00
create_defult_tables.py Updated project structure and staged modified files 2024-07-25 08:21:15 -03:00
indicators.py The test are running but not without errors. 2024-11-11 17:22:06 -04:00
mapped_strategy.py I am just about to move most of the strategy statistics tracking to the StrategyInstance 2024-11-22 10:28:39 -04:00
paper_strategy_instance.py Phase 4: Paper trading implementation 2026-02-28 17:07:34 -04:00
shared_utilities.py Phase 3: Backtest determinism 2026-02-28 17:02:54 -04:00
trade.py I adjusted the block definitions and expanded them. The generator definitions have been updated but are not tested. 2024-10-21 13:37:05 -03:00
working_public_exchanges.txt Extended DataCache with indicator caching functionality. All DataCache tests pass. 2024-09-07 19:51:01 -03:00