Joined February 2012
·

Danilo

Switzerland
·
·
·

Posted to MtGox Bitcoin Price via PHP over 1 year ago

Same thing in Python:

import requests
url = 'http://data.mtgox.com/api/2/BTCUSD/money/ticker'
r = requests.get(url, headers={'Accept': 'application/json'})
print r.json()['data']['avg']['display_short']

See http://blog.dbrgn.ch/2013/11/10/python-fetch-bitcoin-price/

Achievements
150 Karma
0 Total ProTip Views