Last active
June 27, 2017 20:33
-
-
Save Aareon/f0426ea341a03fbc9d7d3c26ac3c0345 to your computer and use it in GitHub Desktop.
Edit to fit your needs. Try it out in terminal.
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 re, json, requests | |
| #{"corg_btc":{"high":0.00000005,"low":0.00000004,"avg":0.00000004,"vol":0.19683907,"vol_cur":4631628.7412026, | |
| #"last":0.00000004,"buy":0.00000004,"sell":0.00000005,"updated":1459641516}} | |
| def price(): | |
| coin = "corg" | |
| response = requests.get('https://yobit.net/api/3/ticker/'+coin+'_btc') | |
| page = response.text | |
| getinfo = json.loads(page) | |
| ticker = getinfo['corg_btc'] | |
| high = ticker['high'] | |
| low = ticker['low'] | |
| avg = ticker['avg'] | |
| vol = ticker['vol'] | |
| vol_cur = ticker['vol_cur'] | |
| last = ticker['last'] | |
| buy = ticker['buy'] | |
| sell = ticker['sell'] | |
| updated = ticker['updated'] | |
| print("Coin: CORG | High: %.8f"%high+" | Low: %.8f"%low+" | Average: %.8f"%avg+" | Volume: %.8f"%vol+" | Current Volume: %.8f"%vol_cur+ | |
| " | Last: %.8f"%last+" | Buy: %.8f"%buy+" | Sell: %.8f"%sell+" | Updated: %.0f"%updated+".") | |
| price() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Aareon, I'm sorry to inform you that this code does not work. It does work better than my dysfunctional marriage, but that's beside the point as she's a social justice warrior, and has repeatedly insulted my choice in car ornaments, and hates my cousin, Hugh Mungus. May I add I really love hula dolls. Feminism is a cancer that is slowly spreading across the world, and it's all because of the New World Order? Fema camps are popping up everywhere, preparing for their return, and feminazi's are driving us to hate each other. On the topic of Nazi's, did you know Hitler was a Zionist? Henry Makaw PhD told me so. And everything I know. I owe my short miserable life to him. Be careful out there, Aareon, if you create working codes, the illuminati may come and take you away, and fake another moon landing.
Bush did 9/11, peace