Skip to content

Fixing serialization errors on BinanceApi #3402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 16, 2025
Merged

Fixing serialization errors on BinanceApi #3402

merged 4 commits into from
Apr 16, 2025

Conversation

silva-fj
Copy link
Contributor

@silva-fj silva-fj commented Apr 16, 2025

This PR fixes serialization issues with wallet::get_all_coins_info and spot_trading::get_account_info BinanceApi methods.

The parameters to create orders have been updated to set the quantity to sell/buy

Make special_tips and several other fields in NetworkInfo optional to match
the actual response format from Binance API. This resolves deserialization
errors when parsing API responses.
Implement a custom deserializer for the Permission enum to properly handle
string values from the Binance API response.
@silva-fj silva-fj requested review from Kailai-Wang and a team April 16, 2025 02:39
Update order parameters in the cross-chain executor
to correctly set quote_order_qty for BUY orders and quantity for SELL
orders based on order side.
@Kailai-Wang Kailai-Wang merged commit 5380f53 into dev Apr 16, 2025
21 checks passed
@Kailai-Wang Kailai-Wang deleted the fix-binance-api branch April 16, 2025 05:51
silva-fj added a commit that referenced this pull request Apr 16, 2025
* fix(binance-api): update NetworkInfo field types

Make special_tips and several other fields in NetworkInfo optional to match
the actual response format from Binance API. This resolves deserialization
errors when parsing API responses.

* fix(binance-api): add custom Permission deserializer

Implement a custom deserializer for the Permission enum to properly handle
string values from the Binance API response.

* feat(binance): improve order handling and type support

Update order parameters in the cross-chain executor
to correctly set quote_order_qty for BUY orders and quantity for SELL
orders based on order side.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants