Skip to content

Commit df39e23

Browse files
authored
Fix MEXC OnGetTickersAsync (#870)
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 df39e23

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
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)