diff --git a/Bitfinex.Net/Clients/SpotApi/BitfinexSocketClientSpotApiShared.cs b/Bitfinex.Net/Clients/SpotApi/BitfinexSocketClientSpotApiShared.cs index b677875..c9bb486 100644 --- a/Bitfinex.Net/Clients/SpotApi/BitfinexSocketClientSpotApiShared.cs +++ b/Bitfinex.Net/Clients/SpotApi/BitfinexSocketClientSpotApiShared.cs @@ -87,7 +87,7 @@ async Task> IBalanceSocketClient.SubscribeToB if (update.UpdateType == SocketUpdateType.Snapshot) return; - handler(update.AsExchangeEvent>(Exchange, update.Data.Select(x => new SharedBalance(x.Asset, x.Available ?? x.Total, x.Total)).ToArray())); + handler(update.AsExchangeEvent>(Exchange, update.Data.Where(x => x.Type == Enums.WalletType.Exchange).Select(x => new SharedBalance(x.Asset, x.Available ?? x.Total, x.Total)).ToArray())); }, ct: ct).ConfigureAwait(false);