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.
|
4 days ago |
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.
|
4 days ago |
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.
|
4 days ago |
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.
|
4 days ago |
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.
|
5 days ago |
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.
|
5 days ago |
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.
|
5 days ago |
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.
|
5 days ago |
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.
|
5 days ago |
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.
|
5 days ago |
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.
|
5 days ago |
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.
|
5 days ago |
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.
|
5 days ago |
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.
|
5 days ago |
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.
|
5 days ago |
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.
|
5 days ago |
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.
|
5 days ago |
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.
|
5 days ago |
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.
|
5 days ago |
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.
|
5 days ago |
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.
|
5 days ago |
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.
|
5 days ago |
Carles Sentis
|
c3fb69e164
Update HyperliquidClient configuration to include privateKey - Added 'privateKey' to the CCXT configuration, aligning it with Hyperliquid's requirements. This change ensures compatibility with the API while maintaining the existing structure for testnet and sandbox options.
|
5 days ago |
Carles Sentis
|
e4bcfc2db1
Update HyperliquidClient to include wallet address in CCXT configuration - Modified the initialization of the Hyperliquid API client to add support for walletAddress, ensuring compatibility with CCXT. Adjusted the handling of privateKey and secret to streamline configuration and improve clarity.
|
5 days ago |
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.
|
5 days ago |
Carles Sentis
|
d071987233
Update Hyperliquid API configuration and documentation - Refined the configuration to replace HYPERLIQUID_PRIVATE_KEY with HYPERLIQUID_WALLET_ADDRESS and clarified the usage of HYPERLIQUID_SECRET_KEY. Enhanced README, setup instructions, and logging to improve user understanding and ensure compatibility with CCXT implementation.
|
5 days ago |
Carles Sentis
|
d5588ed5be
Refactor Hyperliquid API configuration for wallet address and API key - Updated the configuration to correctly assign the wallet address to HYPERLIQUID_PRIVATE_KEY and the API generator key to HYPERLIQUID_SECRET_KEY. Adjusted documentation and logging to reflect these changes, ensuring clarity and compatibility with CCXT implementation.
|
5 days ago |
Carles Sentis
|
efa4c4a664
Update Hyperliquid API configuration to include wallet address - Added support for specifying a wallet address in the configuration and documentation, enhancing compatibility with CCXT implementation. Improved logging and validation for wallet address usage, ensuring better user guidance and error handling.
|
5 days ago |
Carles Sentis
|
9b45b66e00
Refactor Hyperliquid API configuration for private key support - Updated the configuration to use 'privateKey' instead of 'apiKey' for Hyperliquid, ensuring compatibility with CCXT implementation. Added backward compatibility for existing setups and improved logging for sensitive information.
|
5 days ago |
Carles Sentis
|
daa67528c7
Update README to correct Mobile First link - Changed the Mobile First badge link to point to the correct repository, ensuring accurate navigation for users.
|
5 days ago |