Skip to content

Commit ad9ce09

Browse files
committed
Add BTC,XAG,XAU
1 parent a25b4cc commit ad9ce09

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/src/main/java/org/myhush/silentdragon/ConnectionManager.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright 2019-2020 The Hush developers
2+
// Released under the GPLv3
23
package org.myhush.silentdragon
34

45
import android.annotation.SuppressLint
@@ -117,6 +118,7 @@ object ConnectionManager {
117118
fun initCurrencies(){
118119
try {
119120
DataModel.currencySymbols["AUD"] = "$"
121+
DataModel.currencySymbols["BTC"] = "BTC"
120122
DataModel.currencySymbols["CAD"] = "$"
121123
DataModel.currencySymbols["CNY"] = "¥"
122124
DataModel.currencySymbols["EUR"] = ""
@@ -133,11 +135,13 @@ object ConnectionManager {
133135
DataModel.currencySymbols["USD"] = "$"
134136
DataModel.currencySymbols["VEF"] = "Bs"
135137
DataModel.currencySymbols["VND"] = ""
138+
DataModel.currencySymbols["XAG"] = "XAG"
139+
DataModel.currencySymbols["XAU"] = "XAU"
136140
DataModel.currencySymbols["ZAR"] = "R"
137141

138142
Thread {
139143
val client = OkHttpClient()
140-
val currencies = "usd,eur,jpy,btc,cny,rub,cad,sgd,chf,inr,gbp,aud,pkr,mxn,php,vnd,thb,zar,krw,myr,vef"
144+
val currencies = "usd,eur,jpy,btc,cny,rub,cad,sgd,chf,inr,gbp,aud,pkr,mxn,php,vnd,thb,zar,krw,myr,vef,xau,xag"
141145
val request: Request = Request.Builder()
142146
.url("https://api.coingecko.com/api/v3/simple/price?ids=hush&vs_currencies=${currencies}")
143147
.build()

0 commit comments

Comments
 (0)