binance-connector-python icon indicating copy to clipboard operation
binance-connector-python copied to clipboard

Spot client new_order throws error with MIN_NOTIONAL

Open AniSkywalker opened this issue 2 years ago • 1 comments

Issue subject

When a new_order is placed with quantity (not with quoteOrderQty), it is throwing ClientError with 'Filter failure: MIN_NOTIONAL'

Expected behaviour

It should not check MIN_NOTIONAL unless quoteOrderQty is specified.

Actual behaviour

It is failing due to MIN_NOTIONAL. binance.error.ClientError: (400, -1013, 'Filter failure: MIN_NOTIONAL',

Steps to reproduce

spot_client = Spot(apikey, apisec) spot_client.new_order( symbol=symbol, side=side, type="MARKET", quantity=str(0.006), )

Environment

Provide any relevant information about your setup, such as:

  • Version of binance-connector-python 1.15.0
  • Python version 3.7
  • MAC

AniSkywalker avatar Aug 03 '22 09:08 AniSkywalker

what is the symbol?

2pd avatar Aug 11 '22 12:08 2pd

MIN_NOTIONAL error is not a library issue. The notional value of the order is below the requirement, check MIN_NOTIONAL in the API document for more details.

2pd avatar Aug 31 '22 06:08 2pd