Carles Sentis
|
c1bc58f760
Update formatter calls in management, trading, and info commands to use async/await for improved performance and consistency. This change enhances the responsiveness of price and amount formatting across various commands, ensuring accurate and timely data presentation.
|
4 giorni fa |
Carles Sentis
|
b15cb9e236
Refactor trading bot components to enhance async functionality and improve logging. Update requirements to include additional libraries for better performance and error handling. Adjust banner display to include network and database status, and refine error messages for database issues. Ensure consistent formatting in notifications and position tracking for improved clarity.
|
4 giorni fa |
Carles Sentis
|
eeedfb3c92
Enhance HyperliquidClient by masking privateKey in safe configuration for improved security.
|
4 giorni fa |
Carles Sentis
|
c8bdc8899c
Change logging level for exchange position info in SimplePositionTracker from info to debug to reduce log verbosity while maintaining necessary details for troubleshooting.
|
4 giorni fa |
Carles Sentis
|
699f7c0b34
Enhance position information display in PositionsCommands by adding margin used details and refining market data updates in SimplePositionTracker. Ensure accurate extraction of margin and ROE from exchange position info, improving overall clarity in position management.
|
4 giorni fa |
Carles Sentis
|
37bc19028e
Refactor reply handling in InfoCommandsBase to return Message objects and improve error logging in MarketCommands for initial message failures. Ensure fallback mechanisms are in place for message replies, enhancing overall command reliability.
|
4 giorni fa |
Carles Sentis
|
bdfc910e3f
Improve market command response handling by adding a loading message and updating the message editing process for unauthorized access, market data retrieval errors, and successful data display. Enhance price information formatting to include percentage positions within the daily range for better market insights.
|
4 giorni fa |
Carles Sentis
|
f25c81c0df
Enhance market data retrieval in HyperliquidClient by including 24h OHLCV data for accurate high/low values in the ticker. Update MarketCommands to calculate the spread using ticker bid and ask prices for improved clarity in order book information.
|
4 giorni fa |
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 giorni fa |
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 giorni fa |
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 giorni fa |
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 giorni fa |
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 giorni fa |
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 giorni fa |
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 settimana fa |
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 settimana fa |
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 settimana fa |
Carles Sentis
|
6833b74da1
Update logging level from DEBUG to INFO in RiskCleanupManager for improved visibility of key operations and status checks.
|
1 settimana fa |
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 settimana fa |
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 settimana fa |
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 settimana fa |
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 settimana fa |
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 settimana fa |
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 settimana fa |
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 settimana fa |
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 settimana fa |
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 settimana fa |
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 settimana fa |
Carles Sentis
|
2f614198ca
Update default log level to DEBUG for enhanced logging during development
|
1 settimana fa |
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 settimana fa |