Carles Sentis
|
a10e7c34aa
Implement state management for MarketMonitor - Added functionality to load and save the market monitor's state to a JSON file, ensuring persistence of the last processed trade time. Enhanced timestamp handling for incoming trades to support various formats and ensure UTC consistency. Improved logging for state loading and saving processes to aid in debugging and monitoring.
|
hai 5 días |
Carles Sentis
|
bb8b71a7ef
Refactor order execution logic in TradingEngine - Updated the execute_long_order and execute_short_order methods to improve handling of limit and market orders. Enhanced error handling for price validation and order placement, ensuring robustness against invalid inputs and improving logging for better traceability of order processing.
|
hai 5 días |
Carles Sentis
|
484514e0f9
Update days active calculation in TradingStats - Replaced the calculation of active days with a direct reference to the 'days_active' field in the basic data structure, improving code clarity and maintainability.
|
hai 5 días |
Carles Sentis
|
cd95517fcf
Refactor price data handling in InfoCommands - Updated the retrieval of market data prices to handle None values gracefully, ensuring robust float conversion. This improves the reliability of price calculations and enhances overall data integrity in the bot's operations.
|
hai 5 días |
Carles Sentis
|
4e2eb90b5b
Update callback data for inline keyboard buttons in InfoCommands and TradingCommands - Changed callback data to include leading slashes for consistency across command handling. Enhanced error logging and command execution feedback to improve user interaction and clarity during bot operations.
|
hai 5 días |
Carles Sentis
|
264b0a9f51
Update startup message formatting in Telegram bot - Changed escape sequences to newline characters for improved readability in the bot's startup message. This enhances the clarity of the information presented to users upon initialization.
|
hai 6 días |
Carles Sentis
|
73ca59941e
Refactor TradingCommands to integrate InfoCommands and ManagementCommands - Updated the TradingCommands class to accept additional command handlers, enhancing command execution and user interaction. Improved button callback handling for better command processing and user feedback during interactions.
|
hai 6 días |
Carles Sentis
|
994d8f035a
Refactor TradingCommands and management command handling - Simplified the TradingCommands initialization by removing unnecessary parameters. Enhanced the custom keyboard feature to dynamically generate button layouts based on configuration, improving user interaction and feedback during command execution.
|
hai 6 días |
Carles Sentis
|
1e0cf4d47d
Refactor TradingCommands initialization and enhance command handling - Updated the TradingCommands class to accept instances of InfoCommands and ManagementCommands, along with the bot instance itself, for improved command execution. Enhanced button callback handling to streamline command processing and provide user feedback during interactions.
|
hai 6 días |
Carles Sentis
|
a9a57e6ea4
Enhance Telegram bot's polling and shutdown processes - Improved the bot's updater management by ensuring it starts and stops correctly, with detailed logging for better traceability. Updated exception handling during shutdown to provide clearer feedback on interruptions. Refined the application shutdown sequence to ensure all components are properly stopped, contributing to a more reliable and user-friendly experience.
|
hai 6 días |
Carles Sentis
|
d95d69202f
Add TELEGRAM_DROP_PENDING_UPDATES configuration option - Introduced a new environment variable to control the handling of pending updates in the Telegram bot, enhancing flexibility in bot configuration.
|
hai 6 días |
Carles Sentis
|
986e3d42ed
Refactor Telegram bot application setup and message formatting - Removed the drop_pending_updates option during application initialization for improved functionality. Updated startup message formatting to ensure proper escape sequences for better readability. Enhanced the bot's polling mechanism to align with the latest version, contributing to a more reliable and user-friendly experience.
|
hai 6 días |
Carles Sentis
|
e73dcaa327
Refactor Telegram bot to support v20.x style - Updated command handler setup to directly utilize the application for improved clarity and organization. Enhanced logging during bot initialization and shutdown processes, ensuring better traceability and user feedback. Adjusted comments and method calls to align with the new version, contributing to a more streamlined and reliable bot operation.
|
hai 6 días |
Carles Sentis
|
e132d61161
Refactor Telegram bot to support v13.x compatibility - Updated command handler setup to utilize the dispatcher for improved organization and clarity. Enhanced logging during bot initialization and shutdown processes, ensuring better traceability and user feedback. Adjusted comments for clarity and consistency, while maintaining graceful shutdown handling.
|
hai 6 días |
Carles Sentis
|
c9bc3dbf2e
Refactor Telegram bot command responses and authorization handling - Updated command methods to utilize context-based message sending for unauthorized access notifications. Enhanced logging for command execution and error handling, improving user feedback and traceability during bot operations. Streamlined command usage messages for clarity and consistency across trading and management commands.
|
hai 6 días |
Carles Sentis
|
9d7ceac6d8
Enhance authorization logging and startup message formatting - Added detailed logging for authorization checks and the /start command trigger to improve traceability. Updated the startup message formatting for better readability and consistency in the bot's initialization process.
|
hai 6 días |
Carles Sentis
|
53ab900dfa
Refactor Telegram bot logging and startup sequence - Removed unnecessary logging for the python-telegram-bot version and improved the bot's initialization process with clearer comments. Enhanced shutdown handling to ensure proper resolution of tasks during termination, contributing to better reliability and user feedback.
|
hai 6 días |
Carles Sentis
|
0ef97a5708
Enhance Telegram bot initialization and shutdown process - Added logging for the python-telegram-bot version and improved the bot's startup sequence with clearer logging messages. Refined the shutdown logic to ensure graceful termination of the application and market monitor, enhancing overall reliability and user feedback during bot operation.
|
hai 6 días |
Carles Sentis
|
d012cfe6be
Refactor logging and shutdown handling in trading bot - Updated logging calls to use the module logger for consistency and improved clarity. Adjusted shutdown logic to check for the application's running state using the private attribute, enhancing error handling during bot termination.
|
hai 6 días |
Carles Sentis
|
679f3b6d0f
Refactor trading bot shutdown handling and error logging - Removed unused signal handling for graceful shutdown and improved error logging in the BotManager class. Enhanced the main function to provide clearer logging during shutdown and error scenarios, ensuring better traceability and user feedback. Updated comments for clarity and consistency.
|
hai 6 días |
Carles Sentis
|
0cfca41a25
Refactor data management and update file structure for trading bot - Modified the .gitignore to include new data directories for persistent trading data and logs. Updated reset_data.sh to reflect changes in file paths and improved user prompts. Enhanced trading_stats.py and alarm_manager.py to ensure data is stored in the new structure, improving organization and maintainability. Added demo_stats.json for testing purposes.
|
hai 6 días |
Carles Sentis
|
b9ed74ed0e
Refactor Telegram bot welcome message and command structure - Updated the welcome text to reflect the new Hyperliquid Trading Bot branding and improved command organization for better user navigation. Removed the custom keyboard message handler to streamline command processing and implemented a modern polling approach for bot updates, enhancing overall performance and user experience.
|
hai 6 días |
Carles Sentis
|
2f07b122a3
Enhance Telegram bot command handling and performance tracking - Added new commands for performance metrics, daily, weekly, and monthly statistics, along with risk analysis and balance adjustments. Improved position direction handling and updated command responses for better user experience. Introduced a custom keyboard feature for quick access to commands, enhancing overall bot functionality.
|
hai 6 días |
Carles Sentis
|
3e5ee4ebdd
Refactor trading bot architecture and update version to 2.2.0 - Transitioned from a monolithic structure to a modular design, enhancing maintainability and scalability. Introduced dedicated modules for core functionalities, trading commands, and logging configuration. Improved logging setup with advanced features and fallback mechanisms. Updated project documentation to reflect the new structure and benefits of modularization.
|
hai 6 días |
Carles Sentis
|
ebd1bf097d
Enhance Telegram bot trade tracking and command handling - Introduced a mechanism to track bot-generated trade IDs to prevent double processing. Updated command handling to improve user experience with a more comprehensive keyboard mapping and added a debug command for internal state inspection. Enhanced position direction validation using CCXT's side field for improved accuracy in trading operations.
|
hai 6 días |
Carles Sentis
|
22125440b9
Refactor datetime handling in Telegram bot state management - Introduced a helper function to safely convert datetime objects to ISO strings, improving error handling for invalid datetime values. Updated state saving and trade processing logic to maintain datetime objects for comparisons, enhancing reliability in trade tracking.
|
hai 6 días |
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 6 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 6 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 6 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 6 días |