anilshanbhag / RobinhoodShell

A command line shell for trading stocks using Robinhood
MIT License
411 stars 94 forks source link

"sl" Stop-Loss order gets executed as Stop-Limit order #18

Open cole-seph opened 6 years ago

cole-seph commented 6 years ago

When I use the parameter sl to place a stop loss it actually gets executed as a stop-limit. So, "sl MSFT 1 50" translates to a stop-limit order of MSFT at $50. I've tried adding in: "order = 'market'" into where "place_stop_loss_order" is defined in Robinhood.py but still get the same result. Seems to me like this should have overriden the default value of "limit" order with "market" order and thus be translated to a stop-loss order. Maybe this is why stop-loss is not currently supported with RobinhoodShell yet? Not sure This would be really helpful to get worked out