Closed AnthonyVince closed 2 days ago
Hi @AnthonyVince
Thanks for the report here!
You're quite right, it seems Spot is different to Futures. The Spot instrument provider goes for minNotional
from the NOTIONAL
filter which looks correct, where as Futures has a MIN_NOTIONAL
filter and the notional
field is indeed correct.
I've pushed the fix to develop
8b78be6108016e98c868f93395a2eb67277deca5.
Bug Report
Expected Behavior
min_notional values are provided by Binance in the exchange info filters. They are critical to live trading since rejects can occur.
Actual Behavior
min_notional values are always zero in self.cache.instrument(self.instrument_id).min_notional
Steps to Reproduce the Problem
min_notional_filter.minNotional
is always None. The correct value seems to be inmin_notional_filter.notional
This code works
min_notional = Money(min_notional_filter.notional, currency=quote_currency)
See Binance trading rules here
Specifications
nautilus_trader
version: 191