php-binance-api icon indicating copy to clipboard operation
php-binance-api copied to clipboard

Start an order with take profit and stop loss.

Open Ambrodu opened this issue 5 years ago • 8 comments

Hello, I would like to know how to start an order with a take profit in % and a stop loss in %. Thanks 😄

Ambrodu avatar Sep 22 '20 15:09 Ambrodu

futures, spot trading, margin trading?

jaggedsoft avatar Sep 22 '20 15:09 jaggedsoft

For spot trading, if possible.

Ambrodu avatar Sep 22 '20 15:09 Ambrodu

And can I do margin trading with this api? Thanks.

Ambrodu avatar Sep 23 '20 08:09 Ambrodu

But for now let keep things simple. So how can I use take profit and stop loss in the same order ? Thanks.

Ambrodu avatar Sep 23 '20 18:09 Ambrodu

@Ambrodu , would that be the Binance OCO you refer to?

ePascalC avatar Apr 05 '21 12:04 ePascalC

Any news on this? Im looking to place a order with a SL and TP.

CodeWithDennis avatar Apr 27 '21 19:04 CodeWithDennis

Anybody solve this? I would like to place an OCO order in spot trading with a set TP and SL. Currently I have to create a market order and then follow with a TP sell or but get insufficient funds when trying to set a SL sell order.

klipsedeville avatar Jun 02 '21 14:06 klipsedeville

Anybody solve this? I would like to place an OCO order in spot trading with a set TP and SL. Currently I have to create a market order and then follow with a TP sell or but get insufficient funds when trying to set a SL sell order.

@klipsedeville They dont update this repo anymore.. but there is a open pull request with some code that you can use

CodeWithDennis avatar Jun 02 '21 17:06 CodeWithDennis