Skip to content

Commit

Permalink
Merge pull request robinhood-unofficial#91 from jasonleehodges/bug/in…
Browse files Browse the repository at this point in the history
…struments-endpoint

BUG FIX: instruments endpoint
  • Loading branch information
Jamonek authored Apr 24, 2018
2 parents 0fa0dd6 + 552cd10 commit 97da646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Robinhood/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def instruments(instrumentId=None, option=None):
Return information about a specific instrument by providing its instrument id.
Add extra options for additional information such as "popularity"
'''
return "https://api.robinhood.com/instruments/{id}/".format(id=instrumentId) + "{_option}/".format(_option=option) if option else ""
return "https://api.robinhood.com/instruments/" + ("{id}/".format(id=instrumentId) if instrumentId else "") + ("{_option}/".format(_option=option) if option else "")

def margin_upgrades():
return "https://api.robinhood.com/margin/upgrades/"
Expand Down

0 comments on commit 97da646

Please sign in to comment.