Commit Graph

94 Commits

Author SHA1 Message Date
c229212acd Add copy trading authorization checks in LiveTradingBotGrain and StartCopyTradingCommandHandler. Integrated IKaigenService to verify user ownership of master strategy keys before allowing copy trading. Enhanced error handling and logging for authorization verification. 2025-11-16 22:11:54 +07:00
3b176c290c Update precalculated indicators values 2025-11-12 23:26:12 +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
51a227e27e Improve perf for backtests 2025-11-10 02:15:43 +07:00
7e52b7a734 Improve workers for backtests 2025-11-10 01:44:33 +07:00
b1cd01bf9b Fix backtest count 2025-11-09 14:00:36 +07:00
e0795677e4 Add whitelisting and admin 2025-11-07 23:46:48 +07:00
21110cd771 Add whitelisting service + update the jwt valid audience 2025-11-07 19:38:33 +07:00
f816b8de50 Update fetch borkerPosition in bot + better HandleClosePosition + Add debug channel to receive all debug 2025-10-25 18:35:51 +07:00
fc4369a008 Add start and enddate when fetching the position history 2025-10-24 18:00:23 +07:00
af08462e59 Add save only for bundle backtest 2025-10-21 16:38:51 +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
746308bc4f Remove get best agent 2025-10-06 18:31:29 +07:00
347c78afc7 Update messaging 2025-10-06 01:34:13 +07:00
dac0a9641f Fetch closed position to get last pnl realized 2025-10-05 23:31:17 +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
d432549d26 Clean and update event 2025-09-27 22:20:12 +07:00
1e19e29cec Fix get Gas fees + position direction list 2025-09-26 12:02:07 +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
44846a1817 Fix update AgentName 2025-09-24 11:35:40 +07:00
40f3c66694 Add ETH and USDC balance check before start/restart bot and autoswap 2025-09-23 14:03:46 +07:00
d13ac9fd21 fix backtest below 10usdc + update trade 2025-09-22 23:56:45 +07:00
931c4661dc Fix get current price 2025-09-20 16:20:47 +07:00
3e5b215640 Fix bundle backtest grain 2025-09-17 16:34:10 +07:00
Oda
cee3902a4d Update SDK (#35)
* Update SDK for swap

* Fix web3proxy build

* Update types

* Fix swap

* Send token test and BASE transfer

* fix cache and hook

* Fix send

* Update health check with uiFeereceiver

* Fix sdk

* Fix get positions

* Fix timeoutloop

* Fix open position

* Fix closes positions

* Review
2025-09-17 14:28:56 +07:00
63bc7bbe59 Bundle from worker to grain 2025-09-15 12:56:59 +07:00
0b1acbb8dc Rename to init 2025-09-14 00:46:08 +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
289fd25dc3 Add agent balance fetch from proxy 2025-08-15 20:52:37 +07:00
cd93dede4e Add agentbalance 2025-08-15 19:35:01 +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
2dcbcc3ef2 Clear a bit more 2025-08-05 19:34:42 +07:00
7d92031059 Clean namings and namespace 2025-08-05 17:45:44 +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
3de8b5e00e Orlean (#32)
* Start building with orlean

* Add missing file

* Serialize grain state

* Remove grain and proxies

* update and add plan

* Update a bit

* Fix backtest grain

* Fix backtest grain

* Clean a bit
2025-07-30 16:03:30 +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
654d74932c Add telegram message on bundle completed 2025-07-22 18:01:33 +07:00
27c1e9d1ba Fix worker and signal 2025-07-21 23:30:54 +07:00
6f49f2659f Add bundle backtest 2025-07-21 17:03:27 +07:00