robinhood-unofficial / pyrh

Python Framework to make trades with the unofficial Robinhood API
https://pyrh.readthedocs.io/en/latest/
MIT License
1.79k stars 603 forks source link

Feature Request: Trading Fractional Shares #200

Open darrenhakimi opened 4 years ago

darrenhakimi commented 4 years ago

Feature Request: Trading Fraction Shares

adithyabsk commented 4 years ago

@darrenhakimi I don't have fractional shares enabled on my account. I think I'm closing this issue until it is enabled for everyone.

scaratozzolo commented 3 years ago

Any plans for this feature now as fractional shares are accessible to most users?

laygond commented 3 years ago

I did it! So all of these

 place_market_buy_order() 
 place_limit_buy_order()
 place_stop_loss_buy_order()
...
 place_stop_limit_sell_order()

work through the function submit_buy_order which turns quantity = int(quantity) just comment this out in "robinhood.py" and make sure your input quantity has up to 6 decimal places only. Now you will be able to buy fractional orders. ( I have only tested market orders so far)

engineswap commented 1 year ago

Adding this would be nice