Komit Sejarah

Pembuat SHA1 Pesan Tanggal
  Carles Sentis 83c97694aa Enhance market data retrieval in MarketCommands by constructing full market symbols for accurate data fetching. Added leverage information to the market information response and improved error messaging for symbol validation. This change improves the clarity and completeness of market data responses. 4 hari lalu
  Carles Sentis 72e24c79cf Refactor emergency exit handling in RiskCleanupManager and TradingEngine to improve error handling and logging. Enhanced notification formatting for exit failures and ensured cancellation of pending stop losses is robust and properly logged. This change streamlines the exit process and improves clarity in error reporting. 4 hari lalu
  Carles Sentis 1233092bf4 Change logging level from INFO to DEBUG in RiskCleanupManager for open positions check. This adjustment improves the granularity of log messages without cluttering the info logs. 1 Minggu lalu
  Carles Sentis ee90cddaf2 Improve notification formatting in RiskCleanupManager for emergency exit actions. Enhanced readability by restructuring multiline messages and ensuring consistent presentation of key information, including position details and error handling. 1 Minggu lalu
  Carles Sentis bb7394197f Refactor position handling in RiskCleanupManager to remove redundant mark price checks. Updated logging to focus on contracts and entry price, enhancing clarity in skipped positions. This change improves the efficiency of risk management operations. 1 Minggu lalu
  Carles Sentis 6833b74da1 Update logging level from DEBUG to INFO in RiskCleanupManager for improved visibility of key operations and status checks. 1 Minggu lalu
  Carles Sentis d4ae598ecd Update logic for largest_loss tracking in PerformanceCalculator and adjust SQL condition in AggregationManager. Largest loss is now initialized to 0 for better accuracy, and SQL query condition is modified to handle cases where largest losing cycle pnl is zero. 1 Minggu lalu
  Carles Sentis ff17177a83 Initialize largest_loss to negative infinity in PerformanceCalculator for accurate loss tracking. This change ensures that the calculation correctly identifies the largest loss during performance evaluations. 1 Minggu lalu
  Carles Sentis 8bf1fb3d21 Refactor performance calculation logic in PerformanceCalculator class. Updated profit factor and expectancy calculations to use sums of winning and losing trades for improved accuracy. This change enhances the reliability of performance metrics in trading analysis. 1 Minggu lalu
  Carles Sentis eb5f61a2d5 Add missing closing parenthesis in SQL query within AggregationManager class. This change ensures proper syntax for the upsert operation, enhancing the reliability of database interactions. 1 Minggu lalu
  Carles Sentis 4a09c1a16c Enhance trading statistics retrieval in StatsCommands. Updated balance extraction logic to handle various formats, improved performance metrics display, and refined message formatting for better clarity. Added error handling for performance stats retrieval and updated session information to include current timestamp. 1 Minggu lalu
  Carles Sentis 42f1b0fe26 Implement validation for Telegram bot configuration in the run method. Added error logging for missing TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID, and initialized the bot application with the configured token. Enhanced logging to indicate the version of python-telegram-bot being used. 1 Minggu lalu
  Carles Sentis 90544498cb Refactor bot run method to improve signal handling and streamline shutdown process. Added signal support for graceful termination and enhanced logging for better operational clarity during bot initialization and shutdown. 1 Minggu lalu
  Carles Sentis 473dbf7820 Refactor main function to use async/await for improved concurrency. Update bot initialization and polling process to streamline execution and enhance error handling. Adjust logging for better clarity during bot operations. 1 Minggu lalu
  Carles Sentis 7aeed104c2 Refactor bot initialization and polling mechanism to streamline the process. Removed unnecessary keep_running_future and updated logging for clarity. Adjusted stats command to simplify session information retrieval. Enhanced chat ID bot to utilize the new polling method. 1 Minggu lalu
  Carles Sentis 4ecb9b2101 Refactor risk management to utilize database positions for accuracy and update logging for clarity. Adjusted performance metrics retrieval in stats and changed default log level to INFO for production readiness. 1 Minggu lalu
  Carles Sentis 2f614198ca Update default log level to DEBUG for enhanced logging during development 1 Minggu lalu
  Carles Sentis 39569e8b46 Enhance market command to provide detailed market information for specified tokens. This update includes improved error handling, dynamic token retrieval, and a refined message format that presents comprehensive market data, including price, volume, and order book details. Additionally, the command now utilizes a dedicated formatter for consistent output across the application. 1 Minggu lalu
  Carles Sentis f7ce690ebf Refactor InfoCommandsHandler to accept the bot instance, improving command access and structure. This change enhances the integration of command handlers for balance, positions, orders, stats, price, market, performance, daily, weekly, monthly, trades, and risk, streamlining the overall command management within the TelegramTradingBot. 1 Minggu lalu
  Carles Sentis e6bbc69807 Refactor TelegramTradingBot to integrate new info command handlers for enhanced trading data access. This update includes the addition of various command classes for balance, positions, orders, stats, trades, market, performance, daily, weekly, monthly, risk, and price, improving the overall command structure and user experience. The TradingCommands class has also been updated to accommodate the new info commands handler. 1 Minggu lalu
  Carles Sentis ad47c1b8ce Add info commands to trading command map for enhanced user access to trading data. This update includes commands for balance, positions, orders, stats, price, market, performance, daily, weekly, monthly, trades, and risk, improving the overall functionality and user experience of the trading interface. 1 Minggu lalu
  Carles Sentis 59c59bc131 Enhance commands command to include quick action buttons for instant access to bot functions. Updated the command text to provide a more user-friendly interface and improved error handling for message sending. Additionally, refined the risk command to present advanced risk metrics and analysis, ensuring better insights into trading performance and risk management. 1 Minggu lalu
  Carles Sentis d5a7da7248 Add type hints to performance.py for improved code clarity and type safety 1 Minggu lalu
  Carles Sentis 1675f1247e Enhance performance command to provide detailed token statistics and improve user feedback. Updated the performance display to include comprehensive metrics such as total P&L, ROE, and recent trades. Improved error handling for cases with no trading data and refined the formatting for better readability. Additionally, added a new method for formatting token-specific statistics, ensuring consistent presentation across the application. 1 Minggu lalu
  Carles Sentis 3a1d0b8242 Enhance trading statistics retrieval by updating the get_token_performance method to support both specific token queries and aggregate performance data for all tokens. Improved error handling and added detailed performance metrics, including win rate and recent trades, ensuring comprehensive insights into trading performance. 1 Minggu lalu
  Carles Sentis 9c134af542 Enhance error handling in positions command for numeric value conversions. Updated logic to safely convert entry price, current amount, mark price, unrealized P&L, ROE percentage, individual position value, and margin used, ensuring robust data retrieval and logging warnings for conversion failures. This improves data consistency and reliability in financial calculations. 1 Minggu lalu
  Carles Sentis 45bdcf0d60 Refactor positions command to enhance data retrieval and formatting. Improved handling of position attributes, including entry price, current amount, and duration calculations. Updated display logic for position details, ensuring accurate representation of financial metrics such as unrealized P&L, ROE, and margin used. Enhanced error handling for date parsing and added support for displaying stop loss and take profit prices. 1 Minggu lalu
  Carles Sentis 0d1c0aac12 Refactor positions command to improve mark price validation and enhance trading statistics retrieval. Updated the logic to ensure mark price is greater than zero before displaying it, and modified the last activity timestamp retrieval to include both opened and closed trades, ensuring accurate and timezone-aware data handling. 1 Minggu lalu
  Carles Sentis 1e459c8602 Refactor positions command to streamline unrealized PnL and margin calculations. Updated retrieval methods to provide default values, enhancing data consistency. Improved clarity in position display by explicitly defining position direction and emoji representation. Additionally, modified TradeLifecycleManager to use a private method for executing database queries, ensuring better encapsulation of database interactions. 1 Minggu lalu
  Carles Sentis 82fd062c25 Refactor ROE percentage handling across multiple components to improve data consistency and clarity. Updated positions command to retrieve 'roe_percentage' from the database, enhanced SimplePositionTracker and MarketMonitor to extract and utilize ROE from exchange responses, and modified TradeLifecycleManager to accommodate the new data structure. This ensures a unified approach to financial data representation throughout the application. 1 Minggu lalu