Example #1
0
def get_ethereum_list():
    # return [min price within 24h, last, max price within 24h]
    json_dictionary = get_json(
        'https://bitbay.net/API/Public/ETHUSD/ticker.json')

    return [
        json_dictionary.get('min', None),
        json_dictionary.get('last', None),
        json_dictionary.get('max', None)
    ]
Example #2
0
def get_bitcoin_price():
    json_dictionary = get_json('https://bitbay.net/API/Public/BTCUSD/ticker.json')

    return json_dictionary.get('last', None)
Example #3
0
def get_ethereum_price():
    json_dictionary = get_json(
        'https://bitbay.net/API/Public/ETHUSD/ticker.json')

    return json_dictionary.get('last', None)