robinhood-unofficial / pyrh

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

Options Support #201

Open eliper3 opened 4 years ago

eliper3 commented 4 years ago

Is there any plans to support options in the future. The package fast_arrow is not being maintained anymore. If not, does anyone know of any robinhood python api that supports options trading?

ANKELA commented 4 years ago

That would be great if this API supported options. Please implement!

adithyabsk commented 4 years ago

This is on the roadmap, right now I'm taking it one step at a time, first went through and cleaned up the auth process.

jeffweng8 commented 4 years ago

Hey @adithyabsk,

Would love to help work on adding options functionality. Is there anything that you are currently working on so that we aren't duplicating work?

adithyabsk commented 4 years ago

Hi @jeffweng8, if you look at the most recent commits. You'll notice that I'm setting up the project so that it's easy for contributors to add functionality. Right now the Robinhood class is over 1600+ lines which aren't that easy to piece together. I'm working on porting over portfolio functionality right now. If you are interested, you can take a look at how the portfolio class was added and maybe start building off of that. (in terms of options) I just want to make sure I am not wasting valuable contributor time while I iterate on how I want to re-structure the project. Though, I think I finally have the SessionManager nailed down which is nice.

jeffweng8 commented 4 years ago

Ok sounds great. I'll start on adding some of the options endpoints and then check out the API Models stuff.

davidzhou9 commented 4 years ago

Hi @jeffweng8, is the options base model working? It seems like I can get the entire options chain (get_options()) but if I try to get specific market data like prices on a particular option, I'm getting errors. Ty!

jeffweng8 commented 4 years ago

@davidzhou9 I haven't had a chance to work on this in the past couple days, but I'll try to get that patched up over the weekend. If it's caused by the same issue I'm currently running into, its because I need to use a session manager in the get_options.

viaConBodhi commented 3 years ago

@eliper3 and anyone else on this thread who may have used fast_arrow...I realize this thread is for another package but it seem like there maybe a few folks who have used fast_arrow... were you able to submit an option purchase and have it successfully return as actually purchased and not suck in a pending status [ example: 'pending_quantity': '1.00000']? I've tested using above the ask price on options that have high traffic but I'm only getting back pending. When I do the same trade manually via RH UI the purchase goes right through and is not hung up as pending. I'm concerned if fast_arrow could to be used to augment this package since buying options appears to be a challenge.

elamey commented 3 years ago

Call/Put Buy/Sell would be greatly appreciated. Thank you!

adithyabsk commented 1 year ago

If someone wants to take a look at https://github.com/robinhood-unofficial/pyrh/pull/224, rebase and test. I'd be happy to merge and upload to pypi