Skip to content

Commit 27594d9

Browse files
committed
Fix MEXC OnGetTickersAsync
OnGetTickersAsync throws InvalidDataException when new trading pair is added to the ticker, but it is missing in our ExchangeMarket cache. Same as #785
1 parent 3363465 commit 27594d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ExchangeSharp/API/Exchanges/MEXC/ExchangeMEXCAPI.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Collections.Generic;
3+
using System.IO;
34
using System.Linq;
45
using System.Threading.Tasks;
56
using ExchangeSharp.Models;
@@ -96,6 +97,9 @@ await this.ParseTickerAsync(
9697
catch (OverflowException)
9798
{
9899
}
100+
catch (InvalidDataException)
101+
{
102+
}
99103
}
100104

101105
return tickers;

0 commit comments

Comments
 (0)