Open JulienDev opened 3 years ago
Hey @JulienDev Which buy order did you place? Limit or Market? I'm just trying to understand why you didn't get the quantity you requested with the buy order...
Limit, always limit :)
@JulienDev @UPetit Found any solution ? I am stuck with the same bug.
Same problem for me as well. Anyone have a fix for this?
The problem with fees is that they're paid by following two scenarios:
At the second step (sell) of the script, it is expecting to sell the exact quantity that has been bought during the first step of the logic which doesn't seem to be always true...: In case you don't own BNB and we're in the second scenario I've just mentioned, then the quantity you bought is slightly different from the quantity input parameter so the script is trying to sell more than what you really have.
It's not very straightforward to check how you paid your fees for each trade (BNB or not).
I need to evaluate what is the best option here for a fix. The first one I can think of right now is to check the current fees for the crypto pair you selected then calculate the quantity to sell by deducting the estimated fees from the quantity that has been bought.
I'll investigate and try few solutions 🤞
I can confirm that as long as you have a BNB balance the oco selling works.
I can confirm that as long as you have a BNB balance the oco selling works.
Makes sense, thanks for checking. The idea is thus to estimate the fees before creating the buy order 👍 I'll see how I can integrate that to the script.
Describe the bug Once the buy order is filled, the script was not able to sell what was bought because of this error :
I've placed a 67 SUSHI order but probably because of the finance fees, I was only owning 66.970 SUSHI 🍣
Additional context