craysiii / binance

API Wrapper for the Binance cryptocurrency exchange written in Ruby.
MIT License
97 stars 79 forks source link

OCO order #35

Open dpblnt opened 4 years ago

dpblnt commented 4 years ago

Binance has a new method, which places a LIMIT order and a STOP order fot the same amount, named OCO order. Without OCO order when one places a STOP that locks the amount of that order, thus can't have the same amount in another order. After I bought an asset I would place an OCO order as a SELL LIMIT and a STOP LIMIT, and sel the asset either way.

https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md#new-oco-trade

Could you please implement OCO orders?

hackhowtofaq commented 4 years ago

!!!I haven't test it yet!!!

Check my fork binance fork. Please use OCO order with a small amount for testing and reply here If all went as expected. I will test it today probably....