Commit Graph

21 Commits

Author SHA1 Message Date
1426f0b560 Clean code, remove warning for future and spot 2025-12-11 14:36:35 +07:00
292a48d108 Fix close position 2025-12-11 12:23:01 +07:00
8ff9437400 Fix a bit the spot trading 2025-12-10 23:16:46 +07:00
5bd03259da Add BacktestSpotBot and update BacktestExecutor for spot trading support
- Introduced BacktestSpotBot class to handle backtesting for spot trading scenarios.
- Updated BacktestExecutor to support both BacktestFutures and BacktestSpot trading types.
- Enhanced error handling to provide clearer messages for unsupported trading types.
- Registered new command handlers for OpenSpotPositionRequest and CloseSpotPositionCommand in ApiBootstrap.
- Added unit tests for executing backtests with spot trading configurations, ensuring correct behavior and metrics validation.
2025-12-01 23:41:23 +07:00
Oda
9d536ea49e Refactoring TradingBotBase.cs + clean architecture (#38)
* Refactoring TradingBotBase.cs + clean architecture

* Fix basic tests

* Fix tests

* Fix workers

* Fix open positions

* Fix closing position stucking the grain

* Fix comments

* Refactor candle handling to use IReadOnlyList for chronological order preservation across various components
2025-12-01 19:32:06 +07:00
460a7bd559 Fix realized pnl on backtest save + add tests (not all passing) 2025-11-14 02:38:15 +07:00
661f91f537 Remove decimal when using balance 2025-10-16 02:38:29 +07:00
04df72a6bd Fix .First Position update + add more details when position rejected 2025-10-11 12:27:54 +07:00
117d45fb50 Do not stop bot if position open 2025-10-11 00:32:02 +07:00
e4fa4c6595 Add High network fees error message 2025-10-10 22:40:44 +07:00
a3d6dd1238 Remove warning for backtest when signal is expired 2025-10-10 01:35:10 +07:00
16a56bd26c Add agent fees 2025-09-28 20:57:42 +07:00
6d91c75ec2 Fix position gas fee 2025-09-26 17:16:41 +07:00
bcfeb693ce Update account/position and platform summary 2025-09-26 01:18:59 +07:00
40f3c66694 Add ETH and USDC balance check before start/restart bot and autoswap 2025-09-23 14:03:46 +07:00
8afe80ca0e Improve Platform stats 2025-09-21 16:50:06 +07:00
2e4c18ff63 change minimum to trade 2025-08-27 05:19:12 +07:00
0aafab82b3 Fix decimal in amount to trade 2025-08-16 19:18:23 +07:00
b4a4656b3b Update the position count and initiator 2025-08-15 08:47:48 +07:00
e6c3ec139a Add event 2025-08-15 01:23:39 +07:00
7d92031059 Clean namings and namespace 2025-08-05 17:45:44 +07:00