From 990232782f94cf4f365973f2bbc4ea69f8378a7d Mon Sep 17 00:00:00 2001 From: Julien Eluard Date: Thu, 12 Oct 2017 19:09:14 +0200 Subject: [PATCH] Added Status identifier when calling cryptocompare API --- src/status_im/utils/prices.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/status_im/utils/prices.cljs b/src/status_im/utils/prices.cljs index 03593d19ec..77d06cfbd3 100644 --- a/src/status_im/utils/prices.cljs +++ b/src/status_im/utils/prices.cljs @@ -11,9 +11,10 @@ ;; (get-prices "ETH" "USD" println print) (def api-url "https://min-api.cryptocompare.com/data") +(def status-identifier "extraParams=Status.im") (defn- gen-price-url [fsyms tsyms] - (str api-url "/pricemultifull?fsyms=" fsyms "&tsyms=" tsyms)) + (str api-url "/pricemultifull?fsyms=" fsyms "&tsyms=" tsyms "&" status-identifier)) (defn- format-price-resp [from to resp] (let [raw (:RAW (types/json->clj resp))