public class SymbolAPIAdaptor extends PublicRetrofitAPIImpl<SymbolAPIRetrofit> implements SymbolAPI
apiKey, apiKeyVersion, baseUrl, passPhrase, secret| 构造器和说明 |
|---|
SymbolAPIAdaptor(String baseUrl) |
| 限定符和类型 | 方法和说明 |
|---|---|
SymbolTickResponse |
get24hrStats(String symbol)
Get 24 hr stats for the symbol.
|
AllTickersResponse |
getAllTickers()
Require market ticker for all trading pairs in the market (including 24h volume).
|
List<String> |
getMarketList()
Get the transaction currency for the entire trading market.
|
List<SymbolResponse> |
getSymbolList(String market)
Request via this endpoint to get a list of available currency pairs for trading.
|
List<SymbolResponse> |
getSymbols()
Get a list of available currency pairs for trading.
|
TickerResponse |
getTicker(String symbol)
Ticker include only the inside (i.e. best) bid and ask data , last price and last trade size.
|
getAPIImplexecuteSync, getApiKey, getBaseUrl, getErrorResponse, getPassPhrase, getSecret, setApiKey, setBaseUrl, setPassPhrase, setSecretpublic SymbolAPIAdaptor(String baseUrl)
public List<SymbolResponse> getSymbols() throws IOException
SymbolAPIgetSymbols 在接口中 SymbolAPIIOExceptionpublic TickerResponse getTicker(String symbol) throws IOException
SymbolAPIgetTicker 在接口中 SymbolAPIIOExceptionpublic AllTickersResponse getAllTickers() throws IOException
SymbolAPIgetAllTickers 在接口中 SymbolAPIIOExceptionpublic SymbolTickResponse get24hrStats(String symbol) throws IOException
SymbolAPIget24hrStats 在接口中 SymbolAPIIOExceptionpublic List<String> getMarketList() throws IOException
SymbolAPIgetMarketList 在接口中 SymbolAPIIOExceptionpublic List<SymbolResponse> getSymbolList(String market) throws IOException
SymbolAPIgetSymbolList 在接口中 SymbolAPImarket - [Optional] The trading marketIOExceptionCopyright © 2023. All rights reserved.