def get_last(pair): tickerW = common.makeJSONRequest("/api/2/%s/ticker" % pair) ticker = tickerW.get(u'ticker') last_price = ticker.get(u'last') return last_price