jaggedsoft / php-binance-api

PHP Binance API is an asynchronous PHP library for the Binance API designed to be easy to use. https://github.com/binance-exchange/php-binance-api
MIT License
605 stars 497 forks source link

Start an order with take profit and stop loss. #300

Open Ambrodu opened 4 years ago

Ambrodu commented 4 years ago

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

jaggedsoft commented 4 years ago

futures, spot trading, margin trading?

Ambrodu commented 4 years ago

For spot trading, if possible.

Ambrodu commented 4 years ago

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

Ambrodu commented 4 years ago

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

ePascalC commented 3 years ago

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

CodeWithDennis commented 3 years ago

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

klipsedeville commented 3 years ago

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.

CodeWithDennis commented 3 years ago

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