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

instruments function trying to capitalize a string #74

Closed ghost closed 6 years ago

ghost commented 6 years ago

instruments = robinhood.instruments(symbol) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/Robinhood-1.0.1-py3.6.egg/Robinhood/Robinhood.py", line 193, in instruments AttributeError: 'float' object has no attribute 'upper'

The instruments function uses a float, but supposed to use a string? Not sure where I'm getting mixed up here.

AustinScola commented 6 years ago

I think the instruments function takes a string as input: def instruments(self, stock): """Fetch instruments endpoint Args: stock (str): stock ticker...

ghost commented 6 years ago

Yeah, you're right. I found my own bug in my code. I was trying to pass in a float and not a string. Thanks for your help!