Commit Graph

47 Commits

Author SHA1 Message Date
a37b59f29a Add vibe-kanban 2025-12-31 01:31:54 +07:00
eff0c11f26 Refactor Sentry initialization in Program.cs to conditionally set DSN based on configuration; enhance DiscordService to create a service scope for command module registration. 2025-12-14 01:24:24 +07:00
e0e4dda808 Set config to env variables 2025-12-14 01:15:40 +07:00
2157d1f2c9 Remove references to Managing.Aspire.AppHost and Managing.Aspire.ServiceDefaults from solution and project files; update API project to eliminate unused references and adjust JWT token handling in Program.cs; enhance NSwag generation for Axios and Fetch clients, including new import handling. 2025-12-14 00:18:02 +07:00
9e3d8c74b9 Remove some logs from db 2025-11-24 01:26:10 +07:00
fef66f6d7b Update configuration settings and logging behavior for SQL monitoring
- Increased thresholds for maximum query and method executions per window to 500 and 250, respectively, to reduce false positives in loop detection.
- Enabled logging of slow queries only, improving performance by reducing log volume.
- Adjusted SQL query logging to capture only warnings and errors, further optimizing logging efficiency.
- Updated various settings across appsettings files to reflect these changes, ensuring consistency in configuration.
2025-11-24 01:02:53 +07:00
3236edd2bb Add Kaigen API health check and configuration
- Introduced Kaigen configuration section in appsettings.Oda.json with BaseUrl.
- Added HTTP client for Kaigen API health check in Program.cs.
- Registered KaigenHealthCheck service for monitoring Kaigen API connectivity.
2025-11-19 00:59:49 +07:00
333a0cf734 Fix jwt handling 2025-11-08 02:33:39 +07:00
21110cd771 Add whitelisting service + update the jwt valid audience 2025-11-07 19:38:33 +07:00
b8c6f05805 Update managing api security 2025-11-01 18:01:08 +07:00
758e376381 disable swagger + update cors for production 2025-10-31 00:55:29 +07:00
29685fd68d Add healthchecks for all candles + Claim ui fee button 2025-10-29 09:31:00 +07:00
ffe1bed051 Prepare production deploy 2025-10-27 19:23:12 +07:00
e4c2f8b7a5 Add monitoring on queries with sentry alert + Fix check position list in db for backtest 2025-10-10 00:15:02 +07:00
b970090492 Add orleans healthchecks 2025-10-03 12:46:44 +07:00
ffe69356d8 Fix reminding for livetradingbot 2025-09-18 12:19:52 +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
f58d1cea3b Add deployment mode 2025-08-15 17:01:19 +07:00
0966eace58 Disable orleans reminder for deploy and add whitelisted addresses 2025-08-15 16:48:23 +07:00
4d63b9e970 Fix jwt token 2025-08-05 04:51:24 +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
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
f51fd5a5f7 pagination for backtest and optimization 2025-07-16 14:27:07 +07:00
1cfb83f0b1 Add Agent tracking balance 2025-05-16 22:30:18 +07:00
b34e3aa886 Add balance tracking worker 2025-05-16 00:27:07 +07:00
7c2ff75f94 Setup env sentry 2025-05-14 15:05:19 +07:00
Oda
7c38c27b4a Fixes for bots running (#22)
* Fixes for bots running

* Up botmanager

* Add cooldown

* Refact can open position

* Add cooldown Period and MaxLossStreak

* Add agentName

* Add env variable for botManager

* Always enable Botmanager

* Fix bot handle

* Fix get positions

* Add Ticker url

* Dont start stopped bot

* fix
2025-05-09 22:40:31 +07:00
a8eb0aaf02 disable bot manager 2025-05-03 23:08:25 +07:00
bc1ef78747 Fix worker cancelled on worker + Cache tickers 2025-04-30 13:19:03 +07:00
df4392b17e Add bot manager 2025-04-29 21:15:54 +07:00
de25791eb4 Disable workers 2025-04-26 01:31:47 +07:00
5eb401dc80 Fix bot + disable position fetcher 2025-04-26 01:30:27 +07:00
9f6b5bbf0f remove bot manager 2025-04-25 01:17:49 +07:00
Oda
42a4cafd8d Add Sentry (#19)
* add sentry

* add sentry

* better log web3proxy

* Add managing and worker on sentry

* better log web3proxy
2025-04-22 20:49:02 +02:00
868c7bdb65 Fix getbalance + fix get orders for bot 2025-04-21 12:15:53 +02:00
Oda
3113e5d278 Aspire (#17)
* add aspire

* add healthchecks
2025-04-21 04:21:40 +07:00
988cc9eb61 Add Privy type wallet 2025-03-05 10:36:54 +07:00
e59898bccb Update bot workflow 2025-03-02 18:24:50 +01:00
e0a8347953 Disable BotManager 2025-02-27 11:48:20 +07:00
Oda
65bdb8e34f GMX v2 - Trading (#7)
* Move PrivateKeys.cs

* Update gitignore

* Update gitignore

* updt

* Extract GmxServiceTests.cs

* Refact

* update todo

* Update code

* Fix hashdata

* Replace static token hashed datas

* Set allowance

* Add get orders

* Add get orders tests

* Add ignore

* add close orders

* revert

* Add get gas limit

* Start increasePosition. Todo: Finish GetExecutionFee and estimateGas

* little refact

* Update gitignore

* Fix namespaces and clean repo

* Add tests samples

* Add execution fee

* Add increase position

* Handle backtest on the frontend

* Add tests

* Update increase

* Test increase

* fix increase

* Fix size

* Start get position

* Update get positions

* Fix get position

* Update rpc and trade mappers

* Finish close position

* Fix leverage
2025-01-30 23:06:22 +07:00
d96b2a4c3b Add bot worker 2024-06-28 17:26:28 +07:00
c25752c670 Add backup management 2024-06-20 22:38:26 +07:00
cbcbc7239b Update package versions in csproj and package.json files 2024-05-16 19:28:40 +07:00
alirehmani
464a8730e8 docker files fixes from liaqat 2024-05-03 16:39:25 +05:00