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.
|
hai 1 semana |
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.
|
hai 1 semana |
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.
|
hai 1 semana |
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.
|
hai 1 semana |
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.
|
hai 1 semana |
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.
|
hai 1 semana |
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.
|
hai 1 semana |
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.
|
hai 1 semana |
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.
|
hai 1 semana |
Carles Sentis
|
2f614198ca
Update default log level to DEBUG for enhanced logging during development
|
hai 1 semana |
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.
|
hai 1 semana |
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.
|
hai 1 semana |
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.
|
hai 1 semana |
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.
|
hai 1 semana |
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.
|
hai 1 semana |
Carles Sentis
|
d5a7da7248
Add type hints to performance.py for improved code clarity and type safety
|
hai 1 semana |
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.
|
hai 1 semana |
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.
|
hai 1 semana |
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.
|
hai 1 semana |
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.
|
hai 1 semana |
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.
|
hai 1 semana |
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.
|
hai 1 semana |
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.
|
hai 1 semana |
Carles Sentis
|
da196f7a18
Update ROE percentage retrieval in positions command to use 'unrealized_pnl_percentage' from the database. This change enhances data consistency and aligns with recent updates for improved financial insights.
|
hai 1 semana |
Carles Sentis
|
88be3dc67f
Refactor SimplePositionTracker and TradeLifecycleManager to enhance position update handling. Added ROE percentage retrieval and improved notification details for position size changes. Updated database query construction for better clarity and efficiency in trade lifecycle updates.
|
hai 1 semana |
Carles Sentis
|
e50648a320
Enhance SimplePositionTracker to include unrealized P&L and ROE percentage in position updates. This improves the clarity of financial data presented to users, aligning with recent updates for consistent data handling across the application.
|
hai 1 semana |
Carles Sentis
|
1cd72b8630
Update ROE percentage retrieval in positions command to use 'returnOnEquity' from CCXT response. This change enhances clarity and consistency in financial data presentation for users.
|
hai 1 semana |
Carles Sentis
|
7b61d54813
Enhance positions and stats commands in TelegramTradingBot.
|
hai 1 semana |
Carles Sentis
|
fc0afb4fbf
Enhance balance command functionality in TelegramTradingBot.
|
hai 1 semana |
Carles Sentis
|
eae76895a6
Refactor balance and trading stats retrieval in info commands for consistency.
|
hai 1 semana |