public class HistoryAPIAdapter extends PublicRetrofitAPIImpl<HistoryAPIRetrofit> implements HistoryAPI
apiKey, apiKeyVersion, baseUrl, passPhrase, secret| 构造器和说明 |
|---|
HistoryAPIAdapter(String baseUrl) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<List<String>> |
getHistoricRates(String symbol,
long startAt,
long endAt,
String type)
Historic rates for a symbol.
|
List<TradeHistoryResponse> |
getTradeHistories(String symbol)
List the latest trades for a symbol.
|
getAPIImplexecuteSync, getApiKey, getBaseUrl, getErrorResponse, getPassPhrase, getSecret, setApiKey, setBaseUrl, setPassPhrase, setSecretpublic HistoryAPIAdapter(String baseUrl)
public List<TradeHistoryResponse> getTradeHistories(String symbol) throws IOException
HistoryAPIgetTradeHistories 在接口中 HistoryAPIIOExceptionpublic List<List<String>> getHistoricRates(String symbol, long startAt, long endAt, String type) throws IOException
HistoryAPIgetHistoricRates 在接口中 HistoryAPIstartAt - Start time, unix timestamp calculated in seconds not millisecondendAt - End time, unix timestamp calculated in seconds not millisecondtype - Type of candlestick patterns, The type field must be one of the following values:
{"1min","3min","5min","15min","30min","1hour","2hour","4hour","6hour","8hour", "12hour", "1day","1week"}.IOExceptionCopyright © 2023. All rights reserved.