Cancel an order by order id
uladkasach opened this issue · comments
Uladzimir Kasacheuski commented
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.
Uladzimir Kasacheuski commented
The pull request is backwards compatible: the same operations result if an order object is passed (as the method originally expected).
Uladzimir Kasacheuski commented
I've confirmed through live testing that this new functionality works as expected and that the previous functionality works as expected (backwards compatible.)
Alejandro U. Alvarez commented
Sorry for the delay merging this! Added in 1.4.0