Skip to content

v0.2.0 - Account Module Refactor & Type Safety Improvements

Choose a tag to compare

@cafercangundogdu cafercangundogdu released this 21 Dec 13:40
· 13 commits to main since this release

๐Ÿš€ Features & Improvements

  • Account Module Overhaul: The AccountClient has been significantly refactored to provide full type safety. Methods now return strongly-typed DTOs (e.g., WalletBalanceResult, AccountInfoResult) instead of generic serde_json::Value.
  • Inline Testing: Refactored deserialization tests to be inline within their respective DTO modules for better maintainability and verified 100% coverage for Account DTOs.
  • New Example: Added examples/account_example.rs to demonstrate library usage for external consumers.
  • Documentation: Updated README.md with badges for Crates.io and Docs.rs.

๐Ÿ“ฆ Crates.io

This version is now published on Crates.io:
https://crates.io/crates/bybit-rust-api

๐Ÿ›  Fixes

  • Fixed potential private_interface warnings in DTOs.
  • Improved error handling in parameter serialization.