3.0.33 - 2025-07-02
🛠️ fix(client.py): remove redundant else in register_client method
🛠️ fix(strategy_base.py): adjust indentation and structure in fetch_order method
🛠️ fix(exchange_simulator.py): update return type and error handling in methods
3.0.33 - 2025-06-21
Error Handling:
- Removed redundant error handling for
asyncio.CancelledError. This exception is generally not needed because it indicates the task was cancelled, and further action is typically unnecessary.
Asynchronous File Operations:
- Replaced synchronous file operations with asynchronous ones using
aiofilesin several places to improve performance:- Reading and writing JSON files.
- Writing CSV files.
Input Handling:
- Converted blocking input calls into non-blocking ones using
asyncio.to_threadto prevent the event loop from being blocked during user interaction.
Exception Logging:
- Added more descriptive logging for exceptions, such as when failing to get a command from the Telegram proxy or encountering other issues that might affect the operation of the bot.
Code Refactoring:
- Improved code readability and maintainability by removing unnecessary comments and restructuring some sections of the code.
CSV Writing:
- Updated CSV writing logic to use
AsyncWriterfromaiofilesfor asynchronous writing, ensuring that file operations do not block the event loop.