public interface CurrencyAPI
| 限定符和类型 | 方法和说明 |
|---|---|
List<CurrencyResponse> |
getCurrencies()
List known currencies.
|
List<CurrencyDetailV2Response> |
getCurrenciesV3()
List known currencies detail.
|
CurrencyDetailResponse |
getCurrencyDetail(String currency,
String chain)
Get single currency detail
|
CurrencyDetailV2Response |
getCurrencyDetailV2(String currency,
String chain)
Get single currency detail.return all chain if chain is null.
|
Map<String,BigDecimal> |
getFiatPrice(String base,
String currencies)
Get fiat price for currency
|
List<CurrencyResponse> getCurrencies() throws IOException
IOException - on socket errors.KucoinApiException - when errors are returned from the exchange.CurrencyDetailResponse getCurrencyDetail(String currency, String chain) throws IOException
currency - the code of the currencychain - the name of the chainIOException - on socket errors.KucoinApiException - when errors are returned from the exchange.CurrencyDetailV2Response getCurrencyDetailV2(String currency, String chain) throws IOException
currency - the code of the currencychain - the name of the chainIOException - on socket errors.KucoinApiException - when errors are returned from the exchange.List<CurrencyDetailV2Response> getCurrenciesV3() throws IOException
IOException - on socket errors.KucoinApiException - when errors are returned from the exchange.Map<String,BigDecimal> getFiatPrice(String base, String currencies) throws IOException
base - [optional] Fiat,eg.USD,EUR, default is USDcurrencies - [optional] Cryptocurrencies.For multiple cyrptocurrencies, please separate them with comma one by one. default is allIOException - on socket errors.KucoinApiException - when errors are returned from the exchange.Copyright © 2023. All rights reserved.