aurbano / robinhood-node

:chart_with_upwards_trend: NodeJS client for Robinhood Trading :fire:

Home Page:https://aurbano.github.io/robinhood-node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cancel an order by order id

uladkasach opened this issue · comments

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.

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