cancel_all_open_orders should return OrderCanceled type
dorak88783 opened this issue · comments
The function account.cancel_all_open_orders
aims to return Vec<Order>
, but this doesn't work:
Error: Error(Json(Error("missing field `stopPrice`", line: 1, column: 313)), State { next_error: None, backtrace: IntenalBacktrace })
It should be OrderCanceled.
From the API https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md#cancel-all-open-orders-on-a-symbol-trade I see that the response on a canceled OCO is even more complicated; I didn't test this but I think this is still broken.