We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, I can not use linq to filter and select balances where SourceObject.Type = Trade or Main.
var x = kucoinClient.SpotApi.CommonSpotClient.GetBalancesAsync().Result; x.Data.Where(m => m.SourceObject.Type == ?)
The text was updated successfully, but these errors were encountered:
check the SourceObject Type its {Kucoin.Net.Objects.Models.Spot.KucoinAccount} in Spot API i think you doing it wrong.
Sorry, something went wrong.
Yes you can check the SourceObject Type with Casting. but you can't filter Where condition with SourceObject cause it need to casting first.
in order to achieve that:
KucoinAccount l = (KucoinAccount) b.SourceObject; switch (l.Type) { case AccountType.Trade:{}break; . . . }
No branches or pull requests
Hello, I can not use linq to filter and select balances where SourceObject.Type = Trade or Main.
The text was updated successfully, but these errors were encountered: