Here you're looping on the dictionary to build the query string that will be published to the REST API endpoint.
But it doesn't always work, especially if what's inside the Value member is an object or a struct that does not overload the ToString() which leads to that instead of having the value behind the "Enum struct" (LendingType.DAILY => DAILY for instance) you send the type of the object Binance.Spot.Models.LendingType.
So instead of having the queryString like: lendingType=DAILY you get lendingType=Binance.Spot.Models.LendingType
https://github.com/binance/binance-connector-dotnet/blob/88b4b45ec016ad026cf5e3731132cc198846add2/Src/Common/BinanceService.cs#L84
Here you're looping on the dictionary to build the query string that will be published to the REST API endpoint. But it doesn't always work, especially if what's inside the
Value
member is an object or a struct that does not overload theToString()
which leads to that instead of having the value behind the "Enum struct" (LendingType.DAILY
=>DAILY
for instance) you send the type of the objectBinance.Spot.Models.LendingType
.So instead of having the queryString like:
lendingType=DAILY
you getlendingType=Binance.Spot.Models.LendingType
Best Regards,