@@ -0,0 +1,3333 @@
+/*%0A * This file is part of Bisq.%0A *%0A * Bisq is free software: you can redistribute it and/or modify it%0A * under the terms of the GNU Affero General Public License as published by%0A * the Free Software Foundation, either version 3 of the License, or (at%0A * your option) any later version.%0A *%0A * Bisq is distributed in the hope that it will be useful, but WITHOUT%0A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or%0A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public%0A * License for more details.%0A *%0A * You should have received a copy of the GNU Affero General Public License%0A * along with Bisq. If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0A%0Apackage bisq.desktop;%0A%0Aimport bisq.core.locale.CryptoCurrency;%0Aimport bisq.core.locale.CurrencyUtil;%0Aimport bisq.core.locale.FiatCurrency;%0A%0Aimport java.util.Comparator;%0Aimport java.util.List;%0Aimport java.util.Locale;%0Aimport java.util.stream.Stream;%0A%0Apublic class MarketsPrintTool %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        // Prints out all coins in the format used in the market_currency_selector.html.%0A        // Run that and copy paste the result to the market_currency_selector.html at new releases.%0A        StringBuilder sb = new StringBuilder();%0A        Locale.setDefault(new Locale(%22en%22, %22US%22));%0A%0A        // %3Coption value=%22onion_btc%22%3EDeepOnion (ONION)%3C/option%3E%0A        // %3Coption value=%22btc_bhd%22%3EBahraini Dinar (BHD)%3C/option%3E%0A%0A        final List%3CFiatCurrency%3E allSortedFiatCurrencies = CurrencyUtil.getAllSortedFiatCurrencies();%0A        final Stream%3CMarketCurrency%3E fiatStream = allSortedFiatCurrencies.stream()%0A                .filter(e -%3E !e.getCurrency().getCurrencyCode().equals(%22BSQ%22))%0A                .filter(e -%3E !e.getCurrency().getCurrencyCode().equals(%22BTC%22))%0A                .map(e -%3E new MarketCurrency(%22btc_%22 + e.getCode().toLowerCase(), e.getName(), e.getCode()))%0A                .distinct();%0A%0A        final List%3CCryptoCurrency%3E allSortedCryptoCurrencies = CurrencyUtil.getAllSortedCryptoCurrencies();%0A        final Stream%3CMarketCurrency%3E cryptoStream = allSortedCryptoCurrencies.stream()%0A                .filter(e -%3E !e.getCode().equals(%22BSQ%22))%0A                .filter(e -%3E !e.getCode().equals(%22BTC%22))%0A                .map(e -%3E new MarketCurrency(e.getCode().toLowerCase() + %22_btc%22, e.getName(), e.getCode()))%0A                .distinct();%0A%0A        Stream.concat(fiatStream, cryptoStream)%0A                .sorted(Comparator.comparing(o -%3E o.currencyName.toLowerCase()))%0A                .distinct()%0A                .forEach(e -%3E sb.append(%22%3Coption value=%5C%22%22)%0A                        .append(e.marketSelector)%0A                        .append(%22%5C%22%3E%22)%0A                        .append(e.currencyName)%0A                        .append(%22 (%22)%0A                        .append(e.currencyCode)%0A                        .append(%22)%3C/option%3E%22)%0A                        .append(%22%5Cn%22));%0A        System.out.println(sb.toString());%0A    %7D%0A%0A    private static class MarketCurrency %7B%0A        final String marketSelector;%0A        final String currencyName;%0A        final String currencyCode;%0A%0A        MarketCurrency(String marketSelector, String currencyName, String currencyCode) %7B%0A            this.marketSelector = marketSelector;%0A            this.currencyName = currencyName;%0A            this.currencyCode = currencyCode;%0A        %7D%0A    %7D%0A%7D%0A

Add print tool for all markets used in https://github.com/bisq-network/bisq-website/blob/master/_includes/market_currency_selector.html