Skip to content

Commit

Permalink
Use NOTIONAL or MIN_NOTIONAL (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
v36u authored Apr 12, 2024
1 parent e702b3b commit dcd4bb2
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/ExchangeSharp/API/Exchanges/BinanceGroup/BinanceGroupCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,18 @@ protected internal override async Task<
market.PriceStepSize = priceFilter["tickSize"].ConvertInvariant<decimal>();
}

// MIN_NOTIONAL
JToken? minNotionalFilter = filters?.FirstOrDefault(
// NOTIONAL or MIN_NOTIONAL
JToken? notionalFilter =
filters?.FirstOrDefault(
x => string.Equals(x["filterType"].ToStringUpperInvariant(), "NOTIONAL")
)
??
filters?.FirstOrDefault(
x => string.Equals(x["filterType"].ToStringUpperInvariant(), "MIN_NOTIONAL")
);
if (minNotionalFilter != null)
);
if (notionalFilter != null)
{
market.MinTradeSizeInQuoteCurrency = minNotionalFilter[
market.MinTradeSizeInQuoteCurrency = notionalFilter[
"minNotional"
].ConvertInvariant<decimal>();
}
Expand Down

0 comments on commit dcd4bb2

Please sign in to comment.