Commit Graph

61 Commits

Author SHA1 Message Date
7108907e0e Add Redis support for SignalR backplane and caching
- Introduced Redis configuration in appsettings.json to enable SignalR backplane functionality.
- Updated Program.cs to conditionally configure SignalR with Redis if a connection string is provided.
- Added Redis connection service registration in ApiBootstrap for distributed scenarios.
- Included necessary package references for StackExchange.Redis and Microsoft.Extensions.Caching.StackExchangeRedis in project files.
- Implemented password masking for Redis connection strings to enhance security.
2026-01-07 16:59:10 +07:00
8ce7650bbf Remove McpService and refactor dependency injection for MCP tools
- Deleted the McpService class, which was previously responsible for executing Model Context Protocol (MCP) tools.
- Updated the ApiBootstrap class to change the registration of IMcpService to the new Managing.Mcp.McpService implementation.
- Added new MCP tool implementations for DataTools, BotTools, and IndicatorTools to enhance functionality.
2026-01-03 22:55:27 +07:00
6f55566db3 Implement LLM provider configuration and update user settings
- Added functionality to update the default LLM provider for users via a new endpoint in UserController.
- Introduced LlmProvider enum to manage available LLM options: Auto, Gemini, OpenAI, and Claude.
- Updated User and UserEntity models to include DefaultLlmProvider property.
- Enhanced database context and migrations to support the new LLM provider configuration.
- Integrated LLM services into the application bootstrap for dependency injection.
- Updated TypeScript API client to include methods for managing LLM providers and chat requests.
2026-01-03 21:55:55 +07:00
35df25915f Add flagsmith 2025-12-11 19:22:54 +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
b3f3df5fbc Fix privy secrets 2025-11-10 17:57:00 +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
2dc34f07d8 Add yield for orleans + 1min to 2h timeout for grain message + more exception send to sentry 2025-11-07 12:40:24 +07:00
ffe1bed051 Prepare production deploy 2025-10-27 19:23:12 +07:00
bdb254809e Improve CandleStore grain deactivating 2025-10-10 22:09:30 +07:00
7c13ad5f06 Update Agent balance tracking 2025-10-03 15:30:39 +07:00
be1815ea05 Fix update agent name error 2025-10-03 01:27:47 +07:00
c2f3734021 Add Role based grain placement 2025-09-18 20:17:28 +07:00
ffe69356d8 Fix reminding for livetradingbot 2025-09-18 12:19:52 +07:00
63bc7bbe59 Bundle from worker to grain 2025-09-15 12:56:59 +07:00
37d57a1bb8 Update running time exec 2025-09-14 23:02:42 +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
12c6aea053 fix binding silo 2025-09-07 21:47:46 +07:00
e455417cfc Update 2025-09-07 21:28:53 +07:00
ac8716a933 Update silo config 2025-09-07 18:05:07 +07:00
949100102f Update cluster config 2025-09-07 17:49:46 +07:00
9cb33b2b13 Update orleans cluster config 2025-09-07 17:34:58 +07:00
14f5cb0971 Update logs 2025-08-16 06:32:25 +07:00
7271889bdf Fix orleans local 2025-08-16 06:21:26 +07:00
4ff2ccdae3 Add Admin roles 2025-08-16 06:06:02 +07:00
7923b38a26 update orleans 2025-08-16 05:30:12 +07:00
2861a7f469 fix a bit orleans 2025-08-16 05:23:28 +07:00
6df6061d66 Update silo 2025-08-16 05:17:04 +07:00
eeb2923646 Update silo/cluster config 2025-08-16 05:09:04 +07:00
d2975be0f5 Merge workers into API 2025-08-16 04:55:33 +07:00
0966eace58 Disable orleans reminder for deploy and add whitelisted addresses 2025-08-15 16:48:23 +07:00
580ce4d9c9 Fix run time 2025-08-14 23:28:21 +07:00
0c8c3de807 clean a bit more 2025-08-05 19:32:24 +07:00
3d3f71ac7a Move workers 2025-08-05 17:53:19 +07:00
7d92031059 Clean namings and namespace 2025-08-05 17:45:44 +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
20b0881084 Change orlean dashboard port
Some checks failed
Build & Deploy / build-and-deploy (push) Has been cancelled
.NET / build (push) Has been cancelled
2025-07-30 21:23:35 +07:00
84f3e91dc6 Try fixing orleans server runtime 2025-07-30 20:44:58 +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
83ed78a1fa Add signalr 2025-07-21 19:54:04 +07:00
f51fd5a5f7 pagination for backtest and optimization 2025-07-16 14:27:07 +07:00
11778aa2a4 Add kaigen debit credit for backtest 2025-07-15 10:31:21 +07:00
0b4f2173e0 Add Genetic workers 2025-07-10 19:15:57 +07:00
Oda
a547c4a040 Add synthApi (#27)
* Add synthApi

* Put confidence for Synth proba

* Update the code

* Update readme

* Fix bootstraping

* fix github build

* Update the endpoints for scenario

* Add scenario and update backtest modal

* Update bot modal

* Update interfaces for synth

* add synth to backtest

* Add Kelly criterion and better signal

* Update signal confidence

* update doc

* save leaderboard and prediction

* Update nswag to generate ApiClient in the correct path

* Unify the trading modal

* Save miner and prediction

* Update messaging and block new signal until position not close when flipping off

* Rename strategies to indicators

* Update doc

* Update chart + add signal name

* Fix signal direction

* Update docker webui

* remove crypto npm

* Clean
2025-07-03 00:13:42 +07:00
1f2780d52a Add webhook 2025-06-09 01:04:02 +07:00