Binance-Trailing-Stop-Loss icon indicating copy to clipboard operation
Binance-Trailing-Stop-Loss copied to clipboard

Didn't work for BTC/USD on stop loss: got InsufficientFunds

Open theogravity opened this issue 6 years ago • 4 comments

First off - thanks for writing this script - it was a good foundational script to learn off of.

I had an amount that was like 12.34567890 (not an actual amount, just showing that there's decimal 8 digits total).

When the stop loss triggered, I was presented with the InsufficientFunds error. I did a printout of the amount in the script, and it was the same as my actual balance. Unsure why the API call would not go through.

I did try it on XRP/USDT, and that worked (maybe because it's only 1 decimal digit).

theogravity avatar Aug 08 '18 16:08 theogravity

Hi,

Order likely did not execute due to the marker/taker fee. Check new commit.

Regards, Steven

szferguson avatar Aug 08 '18 17:08 szferguson

Ah, thanks

theogravity avatar Aug 09 '18 05:08 theogravity

I think you prob want to also apply the update to the sell side too (your commit only addresses buy)

Also, I had enough BNB in the sell side, but it didn't execute with the same error on BTC/USD (again, XRP/USD did work)

theogravity avatar Aug 09 '18 05:08 theogravity

First of all thank you for writing this script.

  • Im just wondering is this issue completely solved ?.

Im looking forward to use this in my automated trading system.

traderblakeq avatar Sep 04 '19 21:09 traderblakeq