Created
March 9, 2017 19:01
-
-
Save samescolas/7cbc1a26d00a325e67de4fa566971dc1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
import sys, requests | |
requests.get("https://api.robinhood.com/quotes/" + sys.argv[1] + "/") | |
### | |
import sys, json | |
print round(float(json.loads(sys.argv[1])[sys.argv[2]]), 2) | |
print "%.2f" % 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment