Closed uladkasach closed 6 years ago
The pull request is backwards compatible: the same operations result if an order object is passed (as the method originally expected).
I've confirmed through live testing that this new functionality works as expected and that the previous functionality works as expected (backwards compatible.)
Sorry for the delay merging this! Added in 1.4.0
It should be possible to cancel an order by specifying the order id, rather than needing the full order object.
The uri request
https://api.robinhood.com/orders/<order_id>/cancel
is easily buildable.