mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 03:26:31 +00:00
Added Status identifier when calling cryptocompare API
This commit is contained in:
parent
a8bb85fc72
commit
990232782f
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user