Carles Sentis
|
c146ef180a
Enhance market information retrieval in MarketCommands by extracting ticker and orderbook data for improved clarity. Calculate 24h price change and update volume and turnover formatting to utilize new ticker information. Refactor order book display to ensure accurate spread calculation.
|
4 days ago |
Carles Sentis
|
da9d0bc7d3
Refactor market data retrieval in HyperliquidClient to remove unnecessary await, improving performance. Update volume formatting in MarketCommands to include token information for enhanced clarity in market data responses.
|
4 days ago |
Carles Sentis
|
f7643106db
Refactor TradingEngine methods to be asynchronous, enabling better integration with async workflows. Updated methods for fetching market data, token info, and position handling to use await, improving responsiveness and performance in trading operations.
|
4 days ago |
Carles Sentis
|
0d413183d8
Refactor get_markets method in HyperliquidClient to be asynchronous, improving compatibility with async workflows. Updated MarketCommands to await the get_markets call, ensuring proper market data retrieval in an asynchronous context.
|
4 days ago |
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 days ago |
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 days ago |
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 week ago |
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 week ago |
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 week ago |
Carles Sentis
|
6833b74da1
Update logging level from DEBUG to INFO in RiskCleanupManager for improved visibility of key operations and status checks.
|
1 week ago |
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 week ago |
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 week ago |
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 week ago |
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 week ago |
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 week ago |
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 week ago |
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 week ago |
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 week ago |
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 week ago |
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 week ago |
Carles Sentis
|
2f614198ca
Update default log level to DEBUG for enhanced logging during development
|
1 week ago |
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 week ago |
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 week ago |
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 week ago |
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 week ago |
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 week ago |
Carles Sentis
|
d5a7da7248
Add type hints to performance.py for improved code clarity and type safety
|
1 week ago |
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 week ago |
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 week ago |
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 week ago |