Commit Graph

75 Commits

Author SHA1 Message Date
2a354bd7d2 Implement profitable bots filtering in BotController and DataController
- Added IConfiguration dependency to BotController for accessing environment variables.
- Updated GetBotsPaginatedAsync method in BotService and IBotService to include a flag for filtering profitable bots.
- Modified DataController to utilize the new filtering option for agent summaries and bot retrieval.
- Enhanced PostgreSqlBotRepository to apply filtering based on profitability when querying bots.
2025-11-22 14:02:29 +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
269bbfaab0 Add GetBotByUserIdAndNameAsync method to IBotService and BotService
- Implemented GetBotByUserIdAndNameAsync in IBotService and BotService to retrieve a bot by user ID and name.
- Updated GetUserStrategyCommandHandler to utilize the new method for fetching strategies based on user ID.
- Added corresponding method in IBotRepository and PostgreSqlBotRepository for database access.
2025-11-22 10:46:07 +07:00
02e46e8d0d Add paginated user retrieval functionality in AdminController and related services. Implemented UsersFilter for filtering user queries and added LastConnectionDate property to User model. Updated database schema and frontend API to support new user management features. 2025-11-17 20:04:17 +07:00
8697f1598d Add validation for Kudai strategy staking requirements in StartCopyTradingCommandHandler. Implemented methods in IEvmManager to retrieve staked KUDAI balance and GBC NFT count. Enhanced error handling for staking checks. 2025-11-17 12:57:47 +07:00
4a8c22e52a Update and fix worker 2025-11-11 03:02:24 +07:00
e8e2ec5a43 Add test for executor 2025-11-11 02:15:57 +07:00
fec1c78b3c Update jwt config for sandbox 2025-11-10 17:00:05 +07:00
91c766de86 Add admin endpoint to delete bundle backtest requests and implement related UI functionality + Add job resilient 2025-11-10 12:28:07 +07:00
0861e9a8d2 Add admin page for bundle 2025-11-10 11:50:20 +07:00
7e52b7a734 Improve workers for backtests 2025-11-10 01:44:33 +07:00
7e08e63dd1 Add genetic backtest to worker 2025-11-09 03:32:08 +07:00
7dba29c66f Add jobs 2025-11-09 02:08:31 +07:00
21110cd771 Add whitelisting service + update the jwt valid audience 2025-11-07 19:38:33 +07:00
5afddb895e Add async for saving backtests 2025-11-05 16:58:46 +07:00
b3f3bccd72 Add delete backtests by filters 2025-10-15 00:28:25 +07:00
74adad5834 Add filters and sorting for backtests 2025-10-14 18:06:36 +07:00
b6a4c7661f Fix update agent Summary when new balance fetch 2025-10-11 13:10:47 +07:00
652c01b8bb Fix AgentName 2025-10-10 16:08:50 +07:00
b6b11be33a Fix perf with cache 2025-10-10 03:42:57 +07:00
85000644a6 Add ROI to botPaginated 2025-10-06 23:54:59 +07:00
746308bc4f Remove get best agent 2025-10-06 18:31:29 +07:00
dac0a9641f Fetch closed position to get last pnl realized 2025-10-05 23:31:17 +07:00
de0d042254 Use usdc balance instead usdc value for ensuring balance check 2025-10-05 01:36:25 +07:00
b473ad6ad8 Fix trades date 2025-10-04 16:47:22 +07:00
f72bfc4ab8 Update balance tracking 2025-10-03 16:43:20 +07:00
06850b57c4 Add BacktestCount 2025-10-01 13:01:03 +07:00
c71716d5c2 Get TotalAgentCount 2025-09-28 14:43:15 +07:00
a8d09c36b7 Update agent stats 2025-09-28 13:55:24 +07:00
bcfeb693ce Update account/position and platform summary 2025-09-26 01:18:59 +07:00
b2e38811ed Fix global PNL 2025-09-25 23:23:53 +07:00
c297429b18 Fix bot TOP 3 2025-09-25 11:08:28 +07:00
44846a1817 Fix update AgentName 2025-09-24 11:35:40 +07:00
d13ac9fd21 fix backtest below 10usdc + update trade 2025-09-22 23:56:45 +07:00
63bc7bbe59 Bundle from worker to grain 2025-09-15 12:56:59 +07:00
bac93199c0 Fix grain price fetcher 2025-09-14 15:49:49 +07:00
Oda
56b4f14eb3 Price reminder and init approval
* Start price reminder grain

* Add config and init grain at startup

* Save init wallet when already init
2025-09-13 02:29:14 +07:00
7c58e1d7d2 Add missing privy tokens 2025-08-17 01:45:13 +07:00
955c358138 Improve per on price update
Some checks failed
Build & Deploy / build-and-deploy (push) Has been cancelled
.NET / build (push) Has been cancelled
2025-08-16 17:02:31 +07:00
9841219e8b Remove workflow
Some checks failed
Build & Deploy / build-and-deploy (push) Has been cancelled
.NET / build (push) Has been cancelled
2025-08-16 01:33:15 +07:00
8eefab4597 Fix concurrent on userStrategies 2025-08-15 08:56:32 +07:00
b4a4656b3b Update the position count and initiator 2025-08-15 08:47:48 +07:00
2622da05e6 Update open interest 2025-08-14 23:53:45 +07:00
36529ae403 Fix db and fix endpoints 2025-08-05 22:30:18 +07:00
843239d187 Fix mediator 2025-08-05 17:31:10 +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
Oda
422fecea7b Postgres (#30)
* Add postgres

* Migrate users

* Migrate geneticRequest

* Try to fix Concurrent call

* Fix asyncawait

* Fix async and concurrent

* Migrate backtests

* Add cache for user by address

* Fix backtest migration

* Fix not open connection

* Fix backtest command error

* Fix concurrent

* Fix all concurrency

* Migrate TradingRepo

* Fix scenarios

* Migrate statistic repo

* Save botbackup

* Add settings et moneymanagement

* Add bot postgres

* fix a bit more backups

* Fix bot model

* Fix loading backup

* Remove cache market for read positions

* Add workers to postgre

* Fix workers api

* Reduce get Accounts for workers

* Migrate synth to postgre

* Fix backtest saved

* Remove mongodb

* botservice decorrelation

* Fix tradingbot scope call

* fix tradingbot

* fix concurrent

* Fix scope for genetics

* Fix account over requesting

* Fix bundle backtest worker

* fix a lot of things

* fix tab backtest

* Remove optimized moneymanagement

* Add light signal to not use User and too much property

* Make money management lighter

* insert indicators to awaitable

* Migrate add strategies to await

* Refactor scenario and indicator retrieval to use asynchronous methods throughout the application

* add more async await

* Add services

* Fix and clean

* Fix bot a bit

* Fix bot and add message for cooldown

* Remove fees

* Add script to deploy db

* Update dfeeploy script

* fix script

* Add idempotent script and backup

* finish script migration

* Fix did user and agent name on start bot
2025-07-27 20:42:17 +07:00
27c1e9d1ba Fix worker and signal 2025-07-21 23:30:54 +07:00
0870edee61 Setup bundle for backtest 2025-07-21 00:01:13 +07:00
fd117f9a2f Delete backtest by request id 2025-07-18 19:34:16 +07:00