Commit History

Autor SHA1 Mensaxe Data
  Carles Sentis 65b089e7f9 Update bot version to 2.1.2 and refactor type imports across modules - Removed unused imports in alarm_manager, hyperliquid_client, logging_config, and telegram_bot. Enhanced trading_stats to calculate completed trade cycles, improving performance metrics and reporting accuracy. hai 5 días
  Carles Sentis fd6d9c27f5 Enhance HyperliquidClient order handling - Implemented slippage calculation for market orders by fetching the current market price, ensuring more accurate order execution. Updated order creation to include slippage-adjusted pricing, improving trade reliability. hai 5 días
  Carles Sentis ec64d2f5c3 Enhance Telegram bot balance and order handling - Added debug logging for raw balance and orders data to aid in troubleshooting. Updated balance calculations to ensure accurate P&L reporting in USDC and refined asset handling for non-USDC tokens. Improved performance summary display and adjusted command prompts for opening positions. hai 5 días
  Carles Sentis 9f8ab97bb9 Enhance bot state management in Telegram bot - Implemented persistent storage for bot state, including pending stop losses and order tracking, allowing for state restoration across sessions. Added functionality to handle custom keyboard commands and improved logging for state changes, ensuring a more robust user experience. hai 5 días
  Carles Sentis e3004bcf3e Add custom keyboard configuration for Telegram bot - Introduced options to enable/disable custom keyboard shortcuts and define a layout for persistent buttons. Enhanced bot functionality by allowing users to access commands quickly through a tailored keyboard interface. hai 5 días
  Carles Sentis db32706b19 Enhance trade price validation in Telegram bot - Added fallback mechanism to ensure valid price is used when recording trades, improving robustness against unexpected price values. This change reinforces error handling in trading functions. hai 5 días
  Carles Sentis bb57f9fc22 Implement price validation and error handling in trading functions - Added error handling for price and stop loss inputs in the Telegram bot, ensuring robustness against invalid data. Introduced market price fallback mechanism to enhance user experience when invalid prices are provided. hai 5 días
  Carles Sentis 8480c1e58a Refactor Hyperliquid API to use wallet address instead of private key - Updated the trading bot and Hyperliquid client to replace references to HYPERLIQUID_PRIVATE_KEY with HYPERLIQUID_WALLET_ADDRESS, ensuring consistency across the codebase and improving error handling for wallet address configuration. Enhanced logging for deposit and withdrawal checks in the Telegram bot. hai 5 días
  Carles Sentis ccb9a192ce Enhance trading bot with automatic stop loss functionality - Implemented a new feature allowing users to set stop loss parameters for long and short orders via Telegram commands. Updated README for security best practices and command usage, and improved order management with notifications for pending stop losses. Version updated to 2.1.1. hai 6 días
  Carles Sentis ab1d4735ed Add user parameter setup for Hyperliquid API in deposit/withdrawal checks - Enhance deposit and withdrawal fetching by including user parameters based on the configured private key, improving API call accuracy and error handling in the Telegram bot. hai 6 días
  Carles Sentis a943a49b57 Implement sync_client checks for deposit and withdrawal operations in Telegram bot - Add validation to ensure sync_client is available before fetching deposits and withdrawals, enhancing error handling and robustness in transaction monitoring. hai 6 días
  Carles Sentis 5c1b4ce0f2 Remove price alarms configuration file - The price_alarms.json file has been deleted as part of a codebase cleanup, streamlining the project structure and removing unused components. hai 6 días
  Carles Sentis 968e663a08 Implement safety checks for order monitoring attributes in Telegram bot - Add checks to ensure that monitoring attributes are initialized before use, preventing potential errors. Update status reporting to utilize these attributes safely, enhancing the robustness of the bot's monitoring functionality. hai 6 días
  Carles Sentis c95eb361c3 Add balance adjustments tracking and notifications in Telegram bot - Implement a new feature to monitor deposits and withdrawals, enhancing P&L accuracy. Introduce the /balance_adjustments command for users to view their deposit/withdrawal history, and update trading statistics to include balance adjustments summary. Refactor TradingStats to manage balance adjustments effectively. hai 6 días
  Carles Sentis 25635c9be6 Update Telegram bot to use Config.TELEGRAM_CHAT_ID for message sending - Refactor the send_message method to replace the use of authorized_chat_id with the configuration constant, ensuring consistent chat ID usage across the bot's messaging functionality. hai 6 días
  Carles Sentis 5f4d851d65 Refactor trading bot launcher and update Telegram bot features - Simplify the trading bot launcher for systemd deployment, removing error handling and auto-restart features. Introduce a versioning system for the bot and enhance the Telegram bot with a new /version command to display bot and system information. Update welcome messages and command descriptions for clarity and improved user experience. hai 6 días
  Carles Sentis 57b33be15b Add /risk command to Telegram bot for advanced risk metrics - Implement a new command that provides users with detailed risk analysis, including risk-adjusted performance, drawdown analysis, and portfolio context. Enhance user experience with informative messages based on trading history and metrics, while ensuring proper error handling for unauthorized access and data retrieval issues. hai 6 días
  Carles Sentis 81afc9a92a Enhance trading statistics reporting in Telegram bot - Update daily, weekly, and monthly statistics to include performance metrics for days, weeks, and months with no trades. Refactor message formatting to ensure consistent display of trading activity, including summaries for periods without trades. Add tests to verify period stats consistency across different trading scenarios. hai 6 días
  Carles Sentis 9eccf900ad Enhance trading infrastructure and position tracking - Update README with key features of the trading system, including multi-platform support and advanced position tracking. Introduce a new reset_data.sh script for clearing trading data, and add SYSTEM_INTEGRATION.md to document the integration of TradingStats for unified position management. Refactor telegram_bot.py to utilize enhanced tracking methods and improve notification messaging for trade actions. Add tests for integrated position tracking to ensure functionality across multi-entry/exit scenarios. hai 6 días
  Carles Sentis 0111c030e5 Add quick access commands to Telegram bot - Introduce a new /commands command with a button menu for instant access to key bot functions. Update alarm command descriptions for clarity and enhance help text layout for improved user experience. hai 6 días
  Carles Sentis f8db740389 Remove Telegram bot implementation - The telegram_bot.py file has been deleted as part of a refactor to streamline the codebase. This change eliminates the previous bot implementation, paving the way for a new architecture. hai 6 días
  Carles Sentis 2470ad3d59 Update order monitoring interval in Telegram bot messages - Replace hardcoded heartbeat value with Config.BOT_HEARTBEAT_SECONDS for consistency across order monitoring and alarm notifications, ensuring accurate display of check intervals in user messages. hai 6 días
  Carles Sentis be22a37823 Add test script for bot configuration and format string verification - Introduce a new test file to validate the functionality of configuration changes, format strings, and timestamp handling in the Telegram bot. Ensure proper handling of new and removed configuration variables, and verify the accuracy of format strings used in bot messages. hai 6 días
  Carles Sentis ff030e0ae5 Refactor trading configuration - Replace DEFAULT_TRADING_SYMBOL and DEFAULT_TRADE_AMOUNT with DEFAULT_TRADING_TOKEN in configuration files and Telegram bot. Update related validation and logging to ensure proper handling of the new token format for market commands. hai 6 días
  Carles Sentis dd18f41e2f Add stop loss configuration testing and automatic execution - Introduce a new test script for stop loss configuration, showcasing its functionality and scenarios. Update configuration settings to reflect a 10% stop loss threshold. Enhance the Telegram bot to include automatic stop loss notifications and execution, improving risk management capabilities. hai 6 días
  Carles Sentis 01b6eed4d8 Add price alarm system and logging enhancements - Introduce a comprehensive price alarm manager with functionality for creating, triggering, and managing alarms. Implement logging configuration with rotation and cleanup support, and integrate alarm checks into the Telegram bot for real-time notifications. Add tests for alarm management and ensure persistence across sessions. hai 6 días
  Carles Sentis 54b5e220e1 Improve argument validation in Telegram bot commands - Update checks for command arguments to ensure proper handling of empty inputs, enhancing user feedback for commands like /long, /short, /exit, /coo, /sl, and /tp. hai 6 días
  Carles Sentis 5b76ad1144 Enhance documentation and update .gitignore - Add comprehensive command reference and project structure documentation, improve README for clarity, and update .gitignore to include test artifacts and temporary files. hai 6 días
  Carles Sentis c62f37c1cd Refactor Telegram bot startup and update handling - Introduce application initialization, manual update polling, and improved shutdown procedures for better stability and error management. hai 6 días
  Carles Sentis 16f8c7e01c Enhance Telegram bot error handling and asyncio integration - Wrap bot startup in try-except for better error logging, and refactor main function to support async context detection. hai 6 días