From deec859f041320ce54e8a67078ac15dcc8953232 Mon Sep 17 00:00:00 2001 From: sonvister Date: Sat, 9 Mar 2019 09:02:18 -0500 Subject: [PATCH] Closes #119 --- src/Binance/Market/SymbolStatistics.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Binance/Market/SymbolStatistics.cs b/src/Binance/Market/SymbolStatistics.cs index 1504604e..5bc8998a 100644 --- a/src/Binance/Market/SymbolStatistics.cs +++ b/src/Binance/Market/SymbolStatistics.cs @@ -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) @@ -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));