sammchardy / python-binance

Binance Exchange API python implementation for automated trading
https://python-binance.readthedocs.io/en/latest/
MIT License
5.99k stars 2.2k forks source link

No stoploss, take profit, pending order #738

Open jardaoravec opened 3 years ago

jardaoravec commented 3 years ago

Describe the bug In this whole project there is no open order function where i can add parameter like : stoploss = and takeprofit = . Also not possible to add pending order.

I think you guys should cosider adding these.

If iam wrong correct me. But i didnt find way how to open trade with set stoploss and take profit. And also not possible to create pending order.

Bob12345 commented 3 years ago

take a look at client.pyORDER_TYPE_LIMIT = 'LIMIT' ORDER_TYPE_MARKET = 'MARKET' ORDER_TYPE_STOP_LOSS = 'STOP_LOSS' ORDER_TYPE_STOP_LOSS_LIMIT = 'STOP_LOSS_LIMIT' ORDER_TYPE_TAKE_PROFIT = 'TAKE_PROFIT' ORDER_TYPE_TAKE_PROFIT_LIMIT = 'TAKE_PROFIT_LIMIT' ORDER_TYPE_LIMIT_MAKER = 'LIMIT_MAKER'