Commit Graph

1067 Commits

Author SHA1 Message Date
8c8dec3494 Update Dockerfile and TypeScript interfaces for improved project structure and functionality
- Adjusted Dockerfile to correct project paths for COPY commands, ensuring proper build context.
- Enhanced TypeScript interfaces by adding 'gmxSlippage' to User and 'botTradingBalance' to TradingBotResponse, improving data handling.
- Updated methods in BotClient and DataClient to include optional min and max balance parameters for better filtering capabilities.
2026-01-01 21:48:36 +07:00
18373b657a Add min and max balance filters to bot management
- Introduced optional parameters for minimum and maximum BotTradingBalance in BotController, DataController, and related services.
- Updated interfaces and repository methods to support filtering by BotTradingBalance.
- Enhanced TradingBotResponse and BotEntity models to include BotTradingBalance property.
- Adjusted database schema to accommodate new BotTradingBalance field.
- Ensured proper mapping and handling of BotTradingBalance in PostgreSQL repository and mappers.
2026-01-01 21:32:05 +07:00
59a9c56330 Fix script to run aspire 2025-12-31 22:08:55 +07:00
55f09c3091 Fix build 2025-12-31 18:01:29 +07:00
cef86a5025 Enhance start-api-and-workers.sh and vibe-dev-server.sh scripts
- Added support for Swagger in the API by setting EnableSwagger environment variable.
- Implemented build error handling for both API and Workers, providing detailed feedback and suggestions for resolution.
- Updated vibe-dev-server.sh to start the API and Workers using Aspire, including improved logging and dashboard URL extraction.
- Enhanced waiting mechanisms for API readiness and Aspire dashboard availability, ensuring smoother startup experience.
2025-12-31 05:23:07 +07:00
ab08e0241b Update Vibe Kanban setup and scripts
- Added new entries to .gitignore for environment files and dynamically generated Docker Compose files.
- Updated documentation to reflect the new path for the Vibe Kanban dev server script.
- Enhanced task composition scripts to extract TASK_SLOT from TASK_ID, ensuring unique Orleans ports and preventing conflicts.
- Removed the old vibe-dev-server script, consolidating functionality into the new structure.
2025-12-31 04:36:20 +07:00
2e0baa45c0 Enhance vibe-dev-server script to include log file monitoring and improved output for API and Workers logs. Implement waiting mechanism for log file creation, and utilize multitail for better log viewing experience. Add cleanup functionality for background processes when exiting. 2025-12-31 01:43:41 +07:00
a37b59f29a Add vibe-kanban 2025-12-31 01:31:54 +07:00
488d7c2a76 Add vibe-kanban scripts 2025-12-31 01:31:42 +07:00
d102459b27 Update slippage handling in GMX position management to ensure valid ranges and improve logging. Refactor slippage calculations in openGmxPositionImpl and swapGmxTokensImpl, introducing clamping for slippage percentages and detailed output for swap calculations. Adjust tests to reflect changes in expected parameters for position opening. 2025-12-30 20:14:11 +07:00
21d87efeee Refactor user settings management to remove IsGmxEnabled and DefaultExchange from updatable fields, introducing GmxSlippage instead. Update UserController, UserService, and related DTOs to reflect these changes, ensuring proper handling of user settings. Adjust database schema and migrations to accommodate the new GmxSlippage property, enhancing user customization options for trading configurations. 2025-12-30 07:19:08 +07:00
aa3b06bbe4 Enhance user settings management by adding new properties and updating related functionality
This commit introduces additional user settings properties, including TrendStrongAgreementThreshold, SignalAgreementThreshold, AllowSignalTrendOverride, and DefaultExchange, to the User entity and associated DTOs. The UserController and UserService are updated to handle these new settings, allowing users to customize their trading configurations more effectively. Database migrations are also included to ensure proper schema updates for the new fields.
2025-12-30 06:48:08 +07:00
79d8a381d9 Add user settings update functionality in UserController and UserService
Implement a new endpoint in UserController to allow users to update their settings. The UserService is updated to handle the logic for updating user settings, including partial updates for various fields. Additionally, the User entity and database schema are modified to accommodate new user settings properties, ensuring persistence and retrieval of user preferences.
2025-12-30 05:54:15 +07:00
95e60108af Enhance Privy integration by adding getWalletIdFromAddress function to retrieve wallet IDs directly from addresses. Update callContract and related methods to utilize the new function for improved transaction handling. Modify tests to reflect changes in wallet address handling and ensure accurate position management. 2025-12-30 03:02:23 +07:00
274effc749 Update dependencies and refactor Privy integration in Web3Proxy. Replace @privy-io/server-auth with @privy-io/node, introducing authorization context handling for improved transaction security. Modify transaction methods to align with the new SDK structure, ensuring compatibility and enhanced logging for wallet operations. 2025-12-30 00:37:12 +07:00
263c1b0592 Refactor swapGmxTokensImpl to improve wallet balance verification and precision handling. Introduce tolerance checks for requested amounts against wallet balances to prevent errors during swaps. Update logging to provide detailed information on final amounts used in transactions, ensuring better user feedback and error handling. 2025-12-29 20:40:47 +07:00
bdf62f6c9e Implement balance checks for transactions and swaps in GMX SDK. Enhance error handling to provide detailed feedback on insufficient funds, ensuring users are informed of their wallet status before executing transactions. This includes verifying wallet balances before and after operations to prevent unexpected failures. 2025-12-29 20:34:42 +07:00
10691ab0b8 Add endpoint for retrieving spot position history in GMX API. Enhance SpotBot to handle 404 errors gracefully when positions are not found in broker history, improving logging and user feedback for closed positions. 2025-12-29 16:58:32 +07:00
ee8db1cdc8 Enhance SpotBot to improve position recovery logic and add token balance verification after closing positions. The changes include filtering for recent unfinished positions and logging detailed information during position closure, ensuring better tracking and error handling for token balances. 2025-12-29 16:39:02 +07:00
493a2be368 Enhance BacktestComputeWorker to include duration in completion messages for successful and failed backtests. This change improves user feedback by providing detailed timing information alongside the results of the backtests. 2025-12-28 22:20:20 +07:00
e0fb76872e Refactor StartBotCommandHandler to conditionally check trading_future feature flag based on trading type. This change ensures that the feature flag validation is only performed for Futures and BacktestFutures trading types, improving the handling of bot configuration. 2025-12-28 22:18:01 +07:00
31886aeaf3 Refactor signal generation in TradingService to implement a rolling window approach, allowing for incremental processing of candles. This change enhances signal capture across the entire date range and prevents duplicate signals by tracking seen identifiers. 2025-12-28 21:22:45 +07:00
8a7addafd7 Refactor signal generation in TradingService to process indicators individually, improving clarity and performance. Add new API types for refining indicators, including request and response structures. 2025-12-28 20:59:11 +07:00
4f3ec31501 Add endpoint for indicator refiner 2025-12-28 20:38:38 +07:00
d1924d9030 Enhance BacktestExecutor and BacktestComputeWorker with timeout and memory monitoring features. Implement auto-completion for stuck jobs and handle long-running jobs more effectively. Add overall runtime checks for bundles in BundleBacktestHealthCheckWorker to improve job management and recovery processes. 2025-12-28 18:56:33 +07:00
f84524f93a Update benchmark 2025-12-28 18:28:51 +07:00
46518f9c23 Add skipSimulation parameter to swap functionality; update related methods to handle simulation logic accordingly. 2025-12-26 23:05:26 +07:00
920980bb24 Enhance migration script to support environment-specific appsettings for Managing.Workers; improve connection string extraction logic with fallback to Managing.Api for SandboxRemote and ProductionRemote environments. Update createSwapOrderTxn to correct variable naming for clarity and add dynamic execution fee calculation in swapGmxTokensImpl. 2025-12-26 22:42:15 +07:00
96dd9086c5 Update startup message in TradingBotBase to reflect strategy initiation; modify displayed information to include market type and remove scenario name for clarity. 2025-12-26 16:54:47 +07:00
de540e0d45 Refactor agent summary update process; replace TrackBalanceOnBotStartAsync with UpdateSummary in IAgentGrain and AgentGrain, and adjust LiveTradingBotGrain to call UpdateSummary for improved balance tracking and strategy count accuracy. 2025-12-26 16:01:40 +07:00
7a3ede03ca Add balance tracking on bot start/restart; implement TrackBalanceOnBotStartAsync in IAgentGrain and AgentGrain, and trigger it in LiveTradingBotGrain. Enhance logging for balance tracking operations. 2025-12-26 15:43:46 +07:00
f884cb2362 Remove text from backtestSpot 2025-12-26 04:49:47 +07:00
f60277d81d Update backtest worker to fix stuck backtest 2025-12-26 04:27:08 +07:00
5548de6815 Add feature flag check for futures trading in StartBotCommandHandler; refactor FlagsmithService to use username directly for flag retrieval and remove unused hashing logic. 2025-12-24 21:45:32 +07:00
2db6cc9033 Implement orphaned position recovery in SpotBot; enhance logging for recovery attempts and failures, and ensure position synchronization with token balance checks. 2025-12-24 20:52:08 +07:00
667ac44b03 Update SpotBot tolerance calculation to 0.6% to better account for slippage; adjust logging to reflect new tolerance value for position synchronization checks. 2025-12-23 10:13:39 +07:00
30bdc8c114 Update dependency versions in bun.lock and package.json for consistency; lock specific versions for @gelatonetwork/relay-sdk, cross-fetch, lodash, query-string, typescript, and viem; add overrides for viem to ensure compatibility across the project. 2025-12-20 16:15:39 +07:00
73afdf4328 Update build script in package.json to use 'bunx tsc' for TypeScript compilation, enhancing build process consistency. 2025-12-20 16:05:58 +07:00
4fda65e3c2 Enhance error handling in TradingService by capturing exceptions with Sentry; update TypeScript version in package.json for improved features; modify tsconfig.json to exclude unnecessary directories; add new performance benchmark entries in CSV files for better tracking of telemetry data. 2025-12-20 15:53:16 +07:00
e9b4878ffa Refactor BacktestExecutor and TradingBotBase for performance optimizations; remove unused SignalCache and pre-calculation logic; implement caching for open position state and streamline signal access with TryGetValue; enhance logging for detailed timing breakdown during backtest execution. 2025-12-20 10:05:07 +07:00
415845ed5a Refactor BacktestSpotBot signal generation to utilize base implementation for optimizations; update BacktestExecutorTests with revised metrics reflecting recent backtest results; add new performance benchmark entries for improved tracking. 2025-12-19 18:00:37 +07:00
b52f00a450 Remove agent logging and debug statements from gmx.ts to streamline token approval and position opening processes; enhance code clarity and maintainability. 2025-12-19 16:34:42 +07:00
af20a2c503 Fix futures open positions 2025-12-19 16:29:34 +07:00
e6880c9b18 Update fullstack guidelines to use 'bun' instead of 'npm' for testing; modify package.json to lock specific versions of dependencies for consistency; adjust TypeScript code for improved type handling in simulateExecuteOrder function; enhance swap-tokens test with additional parameters for better coverage. 2025-12-19 12:07:54 +07:00
Oda
6d64af7c01 Update sdk (#39)
* Update .DS_Store files and remove obsolete ABI JSON files from Managing.Web3Proxy; enhance bun.lock and package.json for dependency consistency.

* Update import statements in TypeScript files to include .js extensions for consistency across the gmxsdk module.
2025-12-18 21:45:54 +07:00
bcb00b9a86 Refactor pagination sorting parameters across multiple controllers and services to use the new SortDirection enum; update related API models and TypeScript definitions for consistency. Fix minor documentation and naming inconsistencies in the Bot and Data controllers. 2025-12-14 20:23:26 +07:00
cb6b52ef4a Upgrade Vite to version 7.2.7 in package.json and bun.lock; update source-map dependency versions across multiple entries for consistency and compatibility. 2025-12-14 01:53:59 +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
71aff19eb5 Update .DS_Store binary file 2025-12-14 01:24:08 +07:00
e0e4dda808 Set config to env variables 2025-12-14 01:15:40 +07:00