robinhood-unofficial / pyrh

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

Allow for trading of fractional shares. #295

Open SamuelDonovan opened 1 year ago

SamuelDonovan commented 1 year ago

Robinhood has allowed for trading of fractional shares since 2019. Any constraint set forth requiring the share quantity to be an integer is self-imposed at this point. The line quantity = int(quantity) within the submit_sell_order and submit_buy_order functions does nothing but limit functionality.

pyrh/robinhood.py feat:

Checklist

Related Issue

Description

adithyabsk commented 1 year ago

Have you tested that fractional trading works when you submit fractions? What sort of validation should be done to confirm the smallest fraction allowed

stale[bot] commented 1 year ago

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.