craysiii / binance

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

Add create OCO #41

Open jayztemplier opened 3 years ago

jayztemplier commented 3 years ago

Added support for creating OCO. Example:

args = {symbol: "BTCUSDT, side:"sell", quantity: 0.5, price: 65000, stopPrice:55000, stopLimitPrice: 54500, stopLimitTimeInForce:"GTC"}
res = binance_client.create_oco! args