Carles Sentis
|
1e20e93542
Improve gitignore rules for data directory to ensure all data files are ignored
|
hai 4 días |
Carles Sentis
|
f9395fb099
Remove data files from git tracking - should be ignored
|
hai 4 días |
Carles Sentis
|
c6d9f2f62a
Add initial price alarms JSON and trading stats SQLite file - Created a new JSON file for price alarms to manage alarm states and added a SQLite database for trading statistics, enhancing data persistence and management. Updated trading commands to reflect changes in order cancellation notifications, including detailed summaries of cancelled orders.
|
hai 4 días |
Carles Sentis
|
938e56a535
Refactor reset_data.sh and trading_bot.py for SQLite integration - Updated reset_data.sh to remove legacy JSON files and handle SQLite database cleanup. Modified trading_bot.py to check for SQLite database existence instead of JSON files, enhancing statistics persistence reporting. Adjusted management_commands.py to reflect the new SQLite file structure for trading stats. Improved trading_stats.py to rename order_id to exchange_fill_id and added linked_order_table_id for better data management.
|
hai 4 días |
Carles Sentis
|
5ae857d2d6
Enhance order management and stop loss functionality - Updated InfoCommands to display pending stop losses linked to orders, improving user visibility. Refactored TradingCommands to ensure accurate stop loss notifications and confirmations. Transitioned MarketMonitor to utilize SQLite for state management, replacing file-based persistence, and added comprehensive logging for order status updates. Improved TradingEngine to handle order placements and cancellations more robustly, including linked stop loss management, ensuring better tracking and execution of trades.
|
hai 4 días |
Carles Sentis
|
2218d5a8b5
Enhance error handling and logging in HyperliquidClient and TradingEngine - Implemented a method to extract specific error messages from exceptions in HyperliquidClient, improving clarity in error logging. Updated TradingEngine to handle order placement responses more robustly, ensuring detailed error messages are logged and returned for better debugging and user feedback.
|
hai 4 días |
Carles Sentis
|
4e09f49d4e
Fix logging format in TradingStats - Updated the logging statement to ensure proper formatting of the average entry price, improving clarity in position enhancement messages.
|
hai 4 días |
Carles Sentis
|
7c5d17afb9
Refactor TradingStats to use SQLite for data management - Transitioned from JSON file storage to an SQLite database for improved data integrity and performance. Enhanced methods for recording trades, balances, and adjustments, ensuring robust handling of transactions. Updated statistics calculations to leverage database queries, streamlining data retrieval and improving overall efficiency.
|
hai 4 días |
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 4 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 4 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 4 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 4 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 4 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 4 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 4 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 4 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 4 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 4 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 4 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 4 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 4 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 4 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 4 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 4 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 4 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 4 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 4 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 4 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 4 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 5 días |