python-binance icon indicating copy to clipboard operation
python-binance copied to clipboard

How to create a future order at a specified price ?

Open bmw7 opened this issue 3 years ago • 1 comments

For example, the current price of ETH is 2000 usdt. And now, I want to create a SHORT future order at a specified price of 1500 usdt by the function " client.futures_create_order() " . So, when the price falls to 1500 usdt, the order will be triggered. How to do it? thanks!

bmw7 avatar Jul 26 '22 02:07 bmw7

https://www.binance.com/en/support/faq/c-4?navId=4#18-62

https://binance-docs.github.io/apidocs/futures/en/#new-order-trade

Only when closing position can one set such order to be triggered. To open position, one needs to track orderbook or latest price from websocket API manually.

halfelf avatar Jul 27 '22 07:07 halfelf