Commit Graph

18 Commits

Author SHA1 Message Date
5e7b2b34d4 Refactor ETH balance and gas fee checks in SpotBot
- Updated balance checks to utilize user-defined thresholds for minimum trading and swap balances, enhancing flexibility.
- Improved gas fee validation by incorporating user settings, allowing for more personalized transaction management.
- Enhanced logging to provide clearer messages regarding balance sufficiency and gas fee limits, improving user feedback during operations.
2026-01-06 00:43:51 +07:00
21d87efeee Refactor user settings management to remove IsGmxEnabled and DefaultExchange from updatable fields, introducing GmxSlippage instead. Update UserController, UserService, and related DTOs to reflect these changes, ensuring proper handling of user settings. Adjust database schema and migrations to accommodate the new GmxSlippage property, enhancing user customization options for trading configurations. 2025-12-30 07:19:08 +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
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