Package org.knowm.xchange.kucoin.service
Interface SymbolAPI
@Path("api")
@Produces("application/json")
public interface SymbolAPI
Based on code by chenshiwei on 2019/1/11.
-
Method Summary
Modifier and TypeMethodDescriptionGet a list of available currencies for trading.getCurrencies
(String currency) Get currency detail.getMarketStats
(String symbol) Get 24 hr stats for the symbol.Get the fiat price of the currencies for the available trading pairs.Deprecated.Get a list of available currency pairs for trading.Ticker include only the inside (i.e.Request market tickers for all the trading pairs in the market (including 24h volume).
-
Method Details
-
getSymbols
@GET @Path("/v1/symbols") @Deprecated KucoinResponse<List<SymbolResponse>> getSymbols() throws IOExceptionDeprecated.usegetSymbolsV2()
Get a list of available currency pairs for trading.- Returns:
- The available symbols.
- Throws:
IOException
-
getSymbolsV2
Get a list of available currency pairs for trading.- Returns:
- The available symbols.
- Throws:
IOException
-
getCurrencies
@GET @Path("/v1/currencies") KucoinResponse<List<CurrenciesResponse>> getCurrencies() throws IOExceptionGet a list of available currencies for trading.- Returns:
- The available currencies.
- Throws:
IOException
-
getCurrencies
@GET @Path("/v2/currencies/{currency}") KucoinResponse<CurrencyResponseV2> getCurrencies(@PathParam("currency") String currency) throws IOException Get currency detail.- Returns:
- The available currencies.
- Throws:
IOException
-
getPrices
Get the fiat price of the currencies for the available trading pairs.- Returns:
- USD fiat price of the currencies.
- Throws:
IOException
-
getTicker
@GET @Path("/v1/market/orderbook/level1") KucoinResponse<TickerResponse> getTicker(@QueryParam("symbol") String symbol) throws IOException Ticker include only the inside (i.e. best) bid and ask data , last price and last trade size.- Parameters:
symbol
- The currency- Returns:
- The ticker.
- Throws:
IOException
-
getTickers
@GET @Path("/v1/market/allTickers") KucoinResponse<AllTickersResponse> getTickers() throws IOExceptionRequest market tickers for all the trading pairs in the market (including 24h volume).- Returns:
- The allTickersTickerResponse.
- Throws:
IOException
-
getMarketStats
@GET @Path("/v1/market/stats") KucoinResponse<SymbolTickResponse> getMarketStats(@QueryParam("symbol") String symbol) throws IOException Get 24 hr stats for the symbol. volume is in base currency units. open, high, low are in quote currency units.- Parameters:
symbol
- The symbol to fetch.- Returns:
- The 24hr stats for the symbol.
- Throws:
IOException
-
getSymbolsV2()