Skip to content

martin-binance 3.0.34

Latest

Choose a tag to compare

@DogsTailFarmer DogsTailFarmer released this 02 Jul 19:21
· 3 commits to master since this release

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 aiofiles in 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_thread to 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 AsyncWriter from aiofiles for asynchronous writing, ensuring that file operations do not block the event loop.