Closed fpaincha closed 4 months ago
I have updated the create_order()
and create_test_order()
functions according to these instructions.
Order type |
Mandatory parameters |
---|---|
LIMIT |
|
LIMIT_MAKER |
|
MARKET |
|
STOP_LOSS |
|
STOP_LOSS_LIMIT |
|
TAKE_PROFIT |
|
TAKE_PROFIT_LIMIT |
|
After extensive testing, I will create new packages for the installation. I will let you know here as soon as they are available.
Version of this library.
1.46.1
Solution to Issue cannot be found in the documentation or other Issues and also occurs in the latest version of this library.
Hardware?
Local server/workstation
Operating System?
Windows
Python version?
Python3.10
Installed packages
No response
Logging output
No response
Processing method?
stream_buffer
Used endpoint?
concerns all
Issue
The create_order method always sets params "price" and "timeInForce" but that triggers an error from Binance for MARKET orders since those two params do not make sense for them.
The code should only set those params if the order_type is != "MARKET".
Thanks!