-
Notifications
You must be signed in to change notification settings - Fork 140
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
Problems with case insensitive deserialization [BinanceTradeOrderData] #136
Comments
In the actual JSON payload which fields do they correspond too? We can put an attribute to correctly identify what they should deserialize as . Further if the type is wrong we can build a custom converter. We have done this for other types |
OrderId corresponds to |
This has a workaround in 4.9.0 👍 |
Does this mean that there is now support for case-sensitive deserialization? |
@rasmuseeg yes if it follows the pattern we used here |
Issue Overview
There are errors in the deserialization of
BinanceTradeOrderData
from the user data feed, due to case insensitive deserialization from Json.Net JamesNK/Newtonsoft.Json#815For example, the following message is deserialized as follows. Errors highlighted in purple.
https://github.com/binance-exchange/binance-official-api-docs/blob/master/user-data-stream.md
I tried fixing this, but it looks like a deeper problem with the JSON.Net deserializer that has yet to be fixed.
I haven't investigated other socket messages but I expect they may have similar problems.
Any suggestions @glitch100 ? I was unable to think of an easy way to fix.
The text was updated successfully, but these errors were encountered: