@@ -38,14 +38,14 @@ class GenerateSupportedCoinsJson {
38
38
private val allExchanges =
39
39
listOf (this ::ascendex, this ::bibox, this ::bigone, this ::binance, this ::binance_us, this ::bingx, this ::bit2c,
40
40
this ::bitbank, this ::bitcoinde, this ::bitfinex, this ::bitflyer, this ::bithumb, this ::bitmart,
41
- this ::bitpanda, this ::bitpay, this ::bitso, this ::bitstamp, this ::bittrex, this :: bitrue,
41
+ this ::bitpanda, this ::bitpay, this ::bitso, this ::bitstamp, this ::bitrue,
42
42
this ::bitvavo, this ::btcbox, this ::btcmarkets, this ::btcturk, this ::bybit, this ::cexio,
43
- this ::chilebit, this ::coinbase, this ::coinbasepro, this ::coindesk, this ::coingecko,
44
- this ::coinjar, this ::coinmate, this ::coinone, this ::coinpaprika, this ::coinsbit, this :: coinsph, this ::cointree,
43
+ this ::chilebit, this ::coinbase,this ::coindesk, this ::coingecko,
44
+ this ::coinjar, this ::coinmate, this ::coinone, this ::coinpaprika, this ::coinsph, this ::cointree,
45
45
this ::cryptocom, this ::deversifi, this ::digifinex, this ::egera, this ::exmo, this ::foxbit, this ::gateio, this ::gemini,
46
46
this ::hashkey, this ::hitbtc, this ::huobi, this ::independent_reserve, this ::indodax, this ::itbit,
47
47
this ::korbit, this ::kraken, this ::kucoin, this ::kuna, this ::lbank, this ::luno,
48
- this ::mercado, this ::mexc, this ::ndax, this ::nexchange, this ::okcoin, this :: okx, this ::p2pb2b,
48
+ this ::mercado, this ::mexc, this ::ndax, this ::nexchange, this ::okx, this ::p2pb2b,
49
49
this ::paribu, this ::paymium, this ::phemex, this ::poloniex, this ::probit,
50
50
this ::tradeogre, this ::uphold, this ::vbtc, this ::whitebit, this ::xt, this ::yadio,
51
51
this ::yobit, this ::zonda
@@ -361,10 +361,6 @@ class GenerateSupportedCoinsJson {
361
361
return parse(" https://www.bitstamp.net/api/v2/trading-pairs-info" , " $[*].name" )
362
362
}
363
363
364
- private fun bittrex (): List <String > {
365
- return parse(" https://api.bittrex.com/v3/markets" , " $[*].symbol" )
366
- }
367
-
368
364
private fun bitrue (): List <String > {
369
365
val pairs = parse(" https://openapi.bitrue.com/api/v1/exchangeInfo" , " $.symbols[*].symbol" )
370
366
return pairs.filterNot { it.contains(" USDC" ) }
@@ -412,10 +408,6 @@ class GenerateSupportedCoinsJson {
412
408
}
413
409
}
414
410
415
- private fun coinbasepro (): List <String > {
416
- return parse(" https://api.pro.coinbase.com/products" , " $[*].id" )
417
- }
418
-
419
411
private fun coindesk (): List <String > {
420
412
val currencies = parse(" https://api.coindesk.com/v1/bpi/supported-currencies.json" , " $[*].currency" )
421
413
return currencies.map { " BTC_$it " }
@@ -449,10 +441,6 @@ class GenerateSupportedCoinsJson {
449
441
return coins.flatMap { coin -> currencies.filterNot { it == coin }.map { currency -> " $coin -$currency " } }
450
442
}
451
443
452
- private fun coinsbit (): List <String > {
453
- return parse(" https://coinsbit.io/api/v1/public/products" , " $.result[*].id" )
454
- }
455
-
456
444
private fun coinsph (): List <String > {
457
445
return parse(" https://api.pro.coins.ph/openapi/v1/pairs" , " $[*].symbol" )
458
446
}
@@ -538,7 +526,7 @@ class GenerateSupportedCoinsJson {
538
526
}
539
527
540
528
private fun kuna (): List <String > {
541
- return parse(" https://api.kuna.io/v3 /markets" , " $[*].id " )
529
+ return parse(" https://api.kuna.io/v4 /markets/public/getAll " , " $.data [*].pair " )
542
530
}
543
531
544
532
private fun lbank (): List <String > {
@@ -566,10 +554,6 @@ class GenerateSupportedCoinsJson {
566
554
return parse(" https://api.n.exchange/en/api/v1/pair/?format=json" , " $[?(@.disabled==false)].name" )
567
555
}
568
556
569
- private fun okcoin (): List <String > {
570
- return parse(" https://www.okcoin.com/api/spot/v3/instruments" , " $[*].instrument_id" )
571
- }
572
-
573
557
private fun okx (): List <String > {
574
558
val pairs = parse(" https://www.okx.com/api/v5/public/instruments?instType=SPOT" , " $.data[*].instId" )
575
559
return pairs.filterNot { it.contains(" USDC" ) }
0 commit comments