Describe the bug
I'm trying to create a Stop Limit order (ORDER_TYPE_STOP_LOSS_LIMIT) but i'm getting errors, one time its LOT_SIZE and sometimes it's the other ones.
The problem is that i can't understand how to findout if the price/stopPrice and quantity are valid. as this link says, i tried but still getting errors.
Also as the Binance Official Document says, i could'nt get the True value for the third check in the list:
price >= minPriceprice <= maxPrice(price-minPrice) % tickSize == 0
I also have read this article from the creator of the library, but still can't found out how to deal with this calculation.
Any example codes that explains this calulations will be welcomed.
To Reproduce
Code snippet to reproduce the behavior:
Describe the bug I'm trying to create a Stop Limit order (
ORDER_TYPE_STOP_LOSS_LIMIT
) but i'm getting errors, one time itsLOT_SIZE
and sometimes it's the other ones.The problem is that i can't understand how to findout if the
price/stopPrice
andquantity
are valid. as this link says, i tried but still getting errors.Also as the Binance Official Document says, i could'nt get the
True
value for the third check in the list:price >= minPrice
price <= maxPrice
(price-minPrice) % tickSize == 0
I also have read this article from the creator of the library, but still can't found out how to deal with this calculation.
Any example codes that explains this calulations will be welcomed.
To Reproduce Code snippet to reproduce the behavior:
Expected behavior Placing the order successfully.
Environment (please complete the following information):
Logs or Additional context
Stop price would trigger immediately.
LOT_SIZE