Skip to content

Commit

Permalink
Closes #119
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvister committed Mar 9, 2019
1 parent 963c64b commit deec859
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Binance/Market/SymbolStatistics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ public SymbolStatistics(
{
Throw.IfNullOrWhiteSpace(symbol, nameof(symbol));

if (weightedAveragePrice < 0)
throw new ArgumentException($"{nameof(SymbolStatistics)}: price must not be less than 0.", nameof(weightedAveragePrice));
// HACK
//if (weightedAveragePrice < 0)
// throw new ArgumentException($"{nameof(SymbolStatistics)}: price must not be less than 0.", nameof(weightedAveragePrice));
if (previousClosePrice < 0)
throw new ArgumentException($"{nameof(SymbolStatistics)}: price must not be less than 0.", nameof(previousClosePrice));
if (lastPrice < 0)
Expand All @@ -200,8 +201,9 @@ public SymbolStatistics(
if (lowPrice > highPrice)
throw new ArgumentException($"{nameof(SymbolStatistics)}: low price must be less than or equal to high price.", nameof(lowPrice));

if (volume < 0)
throw new ArgumentException($"{nameof(SymbolStatistics)}: volume must be greater than or equal to 0.", nameof(volume));
// HACK
//if (volume < 0)
// throw new ArgumentException($"{nameof(SymbolStatistics)}: volume must be greater than or equal to 0.", nameof(volume));
if (quoteVolume < 0)
throw new ArgumentException($"{nameof(SymbolStatistics)}: volume must be greater than or equal to 0.", nameof(quoteVolume));

Expand Down

0 comments on commit deec859

Please sign in to comment.