@GET('^/api/v1/btc_price')
    @authenticated
    def btc_price(self, request):
        request.setHeader('content-type', "application/json")
        if "currency" in request.args:
            try:
                result = BtcPrice.instance().get(request.args["currency"][0].upper(), False)
                request.write(json.dumps({"btcExchange":result, "currencyCodes":BtcPrice.instance().prices}))
                request.finish()
                return server.NOT_DONE_YET
            except KeyError:
                pass
        request.write(json.dumps({"currencyCodes": BtcPrice.instance().prices}))
        request.finish()
        return server.NOT_DONE_YET
dataset/ETHPy150Open OpenBazaar/OpenBazaar-Server/api/restapi.py/OpenBazaarAPI.btc_price/original