binance-connector-ruby icon indicating copy to clipboard operation
binance-connector-ruby copied to clipboard

new_oco_order not working with provided example

Open dyauss opened this issue 9 months ago • 1 comments

On binance-connector-ruby/examples/spot/trade /new_oco_order.rb there's an example of how to use new_oco_order, but it's not working, since Binance API requires price, but also there's something wrong using price with abovePrice and belowPrice

dyauss avatar May 03 '25 05:05 dyauss

Did you look at this? https://github.com/binance/binance-connector-ruby/blob/master/lib/binance/spot/trade.rb#L156-L202

I use my own api proxy for signed requests so I'm only using this connector for the web sockets but there should be enough details for you to get it sorted.

TheDread-Pirate-Roberts avatar May 21 '25 21:05 TheDread-Pirate-Roberts