Skip to content

Commit d277733

Browse files
authored
log error on Huobi trade stream (#719)
1 parent 48c5bef commit d277733

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ExchangeSharp/API/Exchanges/Huobi/ExchangeHuobiAPI.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ protected override async Task<IWebSocket> OnGetTradesWebSocketAsync(Func<KeyValu
251251

252252
if (token["status"] != null)
253253
{
254+
if (token["status"].ToStringLowerInvariant() == "error")
255+
Logger.Error($"Error in {this.GetType()}.{nameof(OnGetTradesWebSocketAsync)}: {token.ToStringInvariant()}");
254256
return;
255257
}
256258
else if (token["ping"] != null)

0 commit comments

Comments
 (0)