UPetit / python-binance-profit

Script to submit a buy order followed by an automatic sell OCO order
MIT License
47 stars 15 forks source link

[BUG] #26

Closed joengelh closed 3 years ago

joengelh commented 3 years ago

When Trying to open a market order with 0.1 BNB in size, i get an

python3 ./execute_orders.py --symbol BNBPAX --buy_type market --total 0.1 --profit 6.153844958229082 --loss 3.88300173597268 Binance API Time: 2021-04-18 12:24:22Z Binance API is up Trading allowed OCO orders allowed => Step 1 - Buy order execution (Code 400) Filter failure: MIN_NOTIONAL Market buy order has not been created

The Account definetly has sufficient balance and 0.1 BNB is definately tradable.

If It was acually too little, it would be nice to be told whats actually the minimum required amount.

Environment :

thanks for the great work anyhow ;)

joengelh commented 3 years ago

oh it was my problem. your code works perfectly fine, thanks a lot.