Commit Graph

18 Commits

Author SHA1 Message Date
1d33c6c2ee Update AgentSummaryRepository to clarify BacktestCount management
- Added comments to indicate that BacktestCount is not updated directly in the entity, as it is managed independently via IncrementBacktestCountAsync. This change prevents other update operations from overwriting the BacktestCount, ensuring data integrity.
2026-01-09 04:27:58 +07:00
e69dd43ace Enhance DataController and BotService with new configuration and bot name checks
- Added IConfiguration dependency to DataController for environment variable access.
- Updated GetPaginatedAgentSummariesCommand to include a flag for filtering profitable agents.
- Implemented HasUserBotWithNameAsync method in IBotService and BotService to check for existing bots by name.
- Modified StartBotCommandHandler and StartCopyTradingCommandHandler to prevent duplicate bot names during strategy creation.
2025-11-22 13:34:26 +07:00
b6a4c7661f Fix update agent Summary when new balance fetch 2025-10-11 13:10:47 +07:00
ceb52a52d7 Fix update agentName 2025-10-03 02:15:55 +07:00
be1815ea05 Fix update agent name error 2025-10-03 01:27:47 +07:00
a31f834a68 Fix BacktestCount 2025-10-02 00:31:00 +07:00
06850b57c4 Add BacktestCount 2025-10-01 13:01:03 +07:00
f041c1e8e8 Add net Pnl in db 2025-09-28 22:18:58 +07:00
16a56bd26c Add agent fees 2025-09-28 20:57:42 +07:00
c71716d5c2 Get TotalAgentCount 2025-09-28 14:43:15 +07:00
44846a1817 Fix update AgentName 2025-09-24 11:35:40 +07:00
c516c272fd Add sort agent by total volume and total balance 2025-09-15 18:02:52 +07:00
ece75b1973 fix agent summary update 2025-08-15 21:49:27 +07:00
4292e9e02f fix save agent summary 2025-08-15 21:09:26 +07:00
cd93dede4e Add agentbalance 2025-08-15 19:35:01 +07:00
6a2e4e81b1 Update status to match UI 2025-08-14 18:08:31 +07:00
36529ae403 Fix db and fix endpoints 2025-08-05 22:30:18 +07:00
Oda
082ae8714b Trading bot grain (#33)
* Trading bot Grain

* Fix a bit more of the trading bot

* Advance on the tradingbot grain

* Fix build

* Fix db script

* Fix user login

* Fix a bit backtest

* Fix cooldown and backtest

* start fixing bot start

* Fix startup

* Setup local db

* Fix build and update candles and scenario

* Add bot registry

* Add reminder

* Updateing the grains

* fix bootstraping

* Save stats on tick

* Save bot data every tick

* Fix serialization

* fix save bot stats

* Fix get candles

* use dict instead of list for position

* Switch hashset to dict

* Fix a bit

* Fix bot launch and bot view

* add migrations

* Remove the tolist

* Add agent grain

* Save agent summary

* clean

* Add save bot

* Update get bots

* Add get bots

* Fix stop/restart

* fix Update config

* Update scanner table on new backtest saved

* Fix backtestRowDetails.tsx

* Fix agentIndex

* Update agentIndex

* Fix more things

* Update user cache

* Fix

* Fix account load/start/restart/run
2025-08-05 04:07:06 +07:00