Format everything to pep8 guidelines
This commit is contained in:
parent
cd4b65de3d
commit
99fe34a0b1
33 changed files with 142 additions and 107 deletions
|
@ -7,10 +7,10 @@ def bitcoin(inp, message=None):
|
|||
data = http.get_json("https://data.mtgox.com/api/2/BTCUSD/money/ticker")
|
||||
data = data['data']
|
||||
ticker = {
|
||||
'buy': data['buy']['display_short'].encode('ascii','ignore'),
|
||||
'high': data['high']['display_short'].encode('ascii','ignore'),
|
||||
'low': data['low']['display_short'].encode('ascii','ignore'),
|
||||
'vol': data['vol']['display_short'].encode('ascii','ignore'),
|
||||
'buy': data['buy']['display_short'].encode('ascii', 'ignore'),
|
||||
'high': data['high']['display_short'].encode('ascii', 'ignore'),
|
||||
'low': data['low']['display_short'].encode('ascii', 'ignore'),
|
||||
'vol': data['vol']['display_short'].encode('ascii', 'ignore'),
|
||||
}
|
||||
message("Current: \x0307{!s}\x0f - High: \x0307{!s}\x0f"
|
||||
" - Low: \x0307{!s}\x0f - Volume: {!s}".format(ticker['buy'],ticker['high'],ticker['low'],ticker['vol']))
|
||||
" - Low: \x0307{!s}\x0f - Volume: {!s}".format(ticker['buy'], ticker['high'], ticker['low'], ticker['vol']))
|
||||
|
|
Reference in a new issue