Skip to content

Commit

Permalink
Fix for v1 ticker subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Apr 6, 2024
1 parent b815b42 commit e002afd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public override CallResult DoHandleMessage(SocketConnection connection, DataEven
item.Value.Symbol = item.Key;

var relevant = data.Data.First().Where(d => _symbol == null || d.Key == _symbol).Select(d => d.Value);
if (!relevant.Any())
return new CallResult(null);

_handler.Invoke(message.As(relevant, _symbol, SocketUpdateType.Update));
return new CallResult(null);
Expand Down

0 comments on commit e002afd

Please sign in to comment.