Commit Graph

150 Commits

Author SHA1 Message Date
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
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
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
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
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
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
588927678c Use bun for web3proxy and webui 2025-12-13 17:46:25 +07:00
c4e444347c Fix bot update with the tradingtype 2025-12-13 14:46:30 +07:00
a254db6d24 Update bot market type 2025-12-11 23:32:06 +07:00
65d00c0b9a Add reconcilliation for cancelled position if needed 2025-12-11 18:35:25 +07:00
292a48d108 Fix close position 2025-12-11 12:23:01 +07:00
8ff9437400 Fix a bit the spot trading 2025-12-10 23:16:46 +07:00
a2ed4edd32 Implement spot position history retrieval in SpotBot and related services
- Added CheckSpotPositionInExchangeHistory method to SpotBot for verifying closed positions against exchange history.
- Enhanced logging for Web3Proxy errors during position verification.
- Introduced GetSpotPositionHistory method in IEvmManager, IExchangeService, and IWeb3ProxyService interfaces.
- Implemented GetSpotPositionHistory in EvmManager and ExchangeService to fetch historical swap data.
- Updated GMX SDK integration to support fetching spot position history.
- Modified generated API types to include new trading type and position history structures.
2025-12-07 19:20:47 +07:00
78edd850fe Add isLiveTrading helper to fix bug 2025-12-04 23:42:09 +07:00
b3f3df5fbc Fix privy secrets 2025-11-10 17:57:00 +07:00
56c22ce806 Update privy secret usage 2025-11-01 17:12:33 +07:00
6fd4cea3f7 Remove env from dockerfile 2025-11-01 16:07:22 +07:00
7fee636fc4 Fix web3health check + cache secret keys 2025-11-01 13:10:19 +07:00
ab37da2cca Use infisical for secrets 2025-11-01 12:52:06 +07:00
bab2c4f12f Add debug for the secrets files 2025-11-01 11:49:35 +07:00
52db308898 Read from the secret for privy client 2025-11-01 11:43:04 +07:00
bc13202762 Fix secrets required injection for fastify 2025-11-01 11:22:32 +07:00
bec4c0af97 Read secret from docker secrets 2025-11-01 11:09:59 +07:00
04c48e67b8 downgrade node js for web3proxy to match bitwarden napi package 2025-10-31 17:28:15 +07:00
e76bdb4165 Update docker file 2025-10-31 17:20:54 +07:00
39924f45c5 Add the npm ci instead 2025-10-31 17:11:34 +07:00
98b84a92e1 For node module rebuild 2025-10-31 13:41:12 +07:00
f6d9abbe0f Revert dockerfile 2025-10-31 13:27:38 +07:00
2b1d55ddba Add musl build target for bitwarden 2025-10-31 13:20:02 +07:00
f71594b4b5 update web3proxy dockerfile 2025-10-31 13:04:11 +07:00
f550c7ae37 Add packages lock 2025-10-31 12:48:36 +07:00
759d7be5df Add bitwarden secret 2025-10-31 12:42:47 +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
38e6998ff3 Add test to check if backtest behavior changed 2025-10-24 19:08:10 +07:00
fc4369a008 Add start and enddate when fetching the position history 2025-10-24 18:00:23 +07:00
6ffe9ae9c4 Add error handling for GMX positions 2025-10-21 17:56:09 +07:00
acea43ec71 Change Insufficient Allowance message to High network fee 2025-10-17 14:45:21 +07:00
3f1b5f09e0 Update the gmx for the execution fees 2025-10-17 00:49:20 +07:00
e917edd939 Add more logs, 95%ram alert for GmxMarkets, Proxy retry 2times max 2025-10-11 13:43:32 +07:00