Skip to content

Commit 8a05e79

Browse files
authored
remove coindesk, poloniex, huobi, dragonex, bittrex (#2026)
1 parent d50e1b7 commit 8a05e79

10 files changed

Lines changed: 12 additions & 1740 deletions

File tree

cmd/dcrdata/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ var (
7979
defaultAddrCacheUXTOCap = 1 << 29
8080

8181
defaultExchangeIndex = "USD"
82-
defaultDisabledExchanges = "bittrex,dragonex,poloniex"
82+
defaultDisabledExchanges = ""
8383
defaultRateCertFile = filepath.Join(defaultHomeDir, "rpc.cert")
8484

8585
defaultMainnetLink = "https://explorer.dcrdata.org/"

cmd/dcrdata/public/js/controllers/market_controller.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ const prettyDurations = {
3333
}
3434
const exchangeLinks = {
3535
CurrencyPairDCRBTC: {
36-
binance: 'https://www.binance.com/en/trade/DCR_BTC',
37-
bittrex: 'https://bittrex.com/Market/Index?MarketName=BTC-DCR',
38-
poloniex: 'https://poloniex.com/exchange#btc_dcr',
39-
dragonex: 'https://dragonex.io/en-us/trade/index/dcr_btc',
40-
huobi: 'https://www.hbg.com/en-us/exchange/?s=dcr_btc',
4136
dcrdex: 'https://dex.decred.org'
4237
},
4338
CurrencyPairDCRUSDT: {
@@ -476,8 +471,7 @@ function calcStickWindow (start, end, bin) {
476471
}
477472

478473
function isValidExchange (xc) {
479-
return xc === 'binance' || xc === 'dcrdex' || xc === 'poloniex' ||
480-
xc === 'bittrex' || xc === 'huobi' || xc === 'dragonex' || xc === 'mexc'
474+
return xc === 'binance' || xc === 'dcrdex' || xc === 'mexc'
481475
}
482476

483477
export default class extends Controller {

cmd/dcrdata/public/scss/icons.scss

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -153,30 +153,10 @@
153153
background-position: 0 -25px;
154154
}
155155

156-
.exchange-logo.coindesk {
157-
background-position: 0 -50px;
158-
}
159-
160156
.exchange-logo.binance {
161157
background-position: 0 -75px;
162158
}
163159

164-
.exchange-logo.bittrex {
165-
background-position: 0 -100px;
166-
}
167-
168-
.exchange-logo.poloniex {
169-
background-position: 0 -125px;
170-
}
171-
172-
.exchange-logo.huobi {
173-
background-position: 0 -150px;
174-
}
175-
176-
.exchange-logo.dragonex {
177-
background-position: 0 -175px;
178-
}
179-
180160
.exchange-logo.aggregated {
181161
background-position: 0 -200px;
182162
}

cmd/dcrdata/sample-dcrdata.conf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,8 @@
8888
; Enable exchange monitoring.
8989
; exchange-monitor=0
9090
; Disable individual exchanges. Multiple exchanges can be disabled with a
91-
; comma-separated list. Currently available: coinbase, coindesk, binance,
92-
; bittrex, dragonex, huobi, poloniex
93-
; disable-exchange=bittrex,dragonex,huobi
91+
; comma-separated list. Currently available: coinbase, binance, mexc
92+
; disable-exchange=coinbase
9493

9594
; Pull exchange data from a dcrrates server at the network address given by
9695
; ratemaster. Requires the server's TLS certificate. If no

cmd/dcrdata/views/extras.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<link rel="preload" href="/images/connected.svg?x=65tv3" as="image" type="image/svg+xml" />
6868
<link rel="preload" href="/images/disconnected.svg?x=65tv3" as="image" type="image/svg+xml" />
6969

70-
<link href="/dist/css/style.35945d7b1b7d7091.css" rel="stylesheet">
70+
<link href="/dist/css/style.b889c8b9b6831cd5.css" rel="stylesheet">
7171

7272
<script src="/js/vendor/turbolinks.min.js?v=65DCG"></script>
7373
</head>
@@ -193,7 +193,7 @@
193193
data-turbolinks-suppress-warning
194194
></script>
195195
<script
196-
src="/dist/js/app.4c414050d21fc6eb.bundle.js"
196+
src="/dist/js/app.a882ac4b6d92599f.bundle.js"
197197
data-turbolinks-eval="false"
198198
data-turbolinks-suppress-warning
199199
></script>

cmd/dcrdata/views/market.tmpl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@
9797
<span class="fs22 fw-bold d-inline-block">$</span>
9898
{{end}}
9999
<span class="fs24" data-price="{{$state.Price}}" data-token="{{$token}}" data-market-target="xcIndex">{{commaWithDecimal $state.Price 2}}</span> <span class="fs16 text-secondary">{{$botState.Index}}</span><br>
100-
{{if eq $token "coindesk"}}
101-
<a class="fs12" href="https://www.coindesk.com/price/bitcoin">Powered by CoinDesk</a>
102-
{{end}}
103100
</div>
104101
{{end}}
105102
</div>

0 commit comments

Comments
 (0)