Skip to content

Commit dcd4bb2

Browse files
authored
Use NOTIONAL or MIN_NOTIONAL (#834)
1 parent e702b3b commit dcd4bb2

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/ExchangeSharp/API/Exchanges/BinanceGroup/BinanceGroupCommon.cs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,18 @@ protected internal override async Task<
270270
market.PriceStepSize = priceFilter["tickSize"].ConvertInvariant<decimal>();
271271
}
272272

273-
// MIN_NOTIONAL
274-
JToken? minNotionalFilter = filters?.FirstOrDefault(
273+
// NOTIONAL or MIN_NOTIONAL
274+
JToken? notionalFilter =
275+
filters?.FirstOrDefault(
276+
x => string.Equals(x["filterType"].ToStringUpperInvariant(), "NOTIONAL")
277+
)
278+
??
279+
filters?.FirstOrDefault(
275280
x => string.Equals(x["filterType"].ToStringUpperInvariant(), "MIN_NOTIONAL")
276-
);
277-
if (minNotionalFilter != null)
281+
);
282+
if (notionalFilter != null)
278283
{
279-
market.MinTradeSizeInQuoteCurrency = minNotionalFilter[
284+
market.MinTradeSizeInQuoteCurrency = notionalFilter[
280285
"minNotional"
281286
].ConvertInvariant<decimal>();
282287
}

0 commit comments

Comments
 (0)