public class PageTokenUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_BATCH_TIME |
static int |
DEFAULT_PAGE_SIZE |
static long |
DEFAULT_TIME_INTERVAL |
static int |
MAX_TOTAL_SIZE |
static FutureKlineItem |
RETURN_FUTURE_KLINE |
static KlinePoint |
RETURN_KLINE |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<FutureKlineItem> |
getKlineByPage(String symbol,
FutureKType period,
String beginTime,
String endTime)
get futrue kline data by page, return the merge result(use default pageSize:1000, 10 queries in total)
|
static List<FutureKlineItem> |
getKlineByPage(String symbol,
FutureKType period,
String beginTime,
String endTime,
int totalSize)
get futrue kline data by page, return the merge result(use default pageSize:1000, 10 queries in total)
|
static List<FutureKlineItem> |
getKlineByPage(String symbol,
FutureKType period,
String beginTime,
String endTime,
TimeZoneId zoneId,
int pageSize,
int totalSize,
long timeInterval)
get futrue kline data by page, return the merge result
|
static List<KlinePoint> |
getKlineByPage(String symbol,
KType period,
String beginTime,
String endTime)
get kline data by page, return the merge result(use default pageSize:1000, 10 queries in total)
|
static List<KlinePoint> |
getKlineByPage(String symbol,
KType period,
String beginTime,
String endTime,
int totalSize)
get kline data by page, return the merge result(use default pageSize:1000, 10 queries in total)
|
static List<KlinePoint> |
getKlineByPage(String symbol,
KType period,
String beginTime,
String endTime,
TimeZoneId zoneId,
RightOption right,
int pageSize,
int totalSize,
long timeInterval)
get kline data by page, return the merge result
|
static <T> List<T> |
getKlineByPage(T t,
String symbol,
String period,
String beginTime,
String endTime,
TimeZoneId zoneId,
RightOption right,
int pageSize,
int totalSize,
long timeInterval)
get kline data by page, return the merge result
|
public static int DEFAULT_PAGE_SIZE
public static int DEFAULT_BATCH_TIME
public static int MAX_TOTAL_SIZE
public static long DEFAULT_TIME_INTERVAL
public static final KlinePoint RETURN_KLINE
public static final FutureKlineItem RETURN_FUTURE_KLINE
public static List<KlinePoint> getKlineByPage(String symbol, KType period, String beginTime, String endTime) throws TigerApiException
symbol - symbolperiod - kline tpyebeginTime - begin time. format:"2022-04-25 00:00:00"endTime - end time. formae:"2022-04-28 00:00:00"TigerApiExceptionpublic static List<KlinePoint> getKlineByPage(String symbol, KType period, String beginTime, String endTime, int totalSize) throws TigerApiException
symbol - symbolperiod - kline tpyebeginTime - begin time. format:"2022-04-25 00:00:00"endTime - end time. formae:"2022-04-28 00:00:00"totalSize - total size. the max value is 10000TigerApiExceptionpublic static List<KlinePoint> getKlineByPage(String symbol, KType period, String beginTime, String endTime, TimeZoneId zoneId, RightOption right, int pageSize, int totalSize, long timeInterval) throws TigerApiException
symbol - symbolperiod - kline tpyebeginTime - begin time. format:"2022-04-25 00:00:00"endTime - end time. formae:"2022-04-28 00:00:00"zoneId - zone, the default is NewYorkright - adjust type. the default is br(adjusted)pageSize - page size. the default is 1000totalSize - total size. the default is 10000timeInterval - request interval milliseconds, the default is 2000TigerApiExceptionpublic static List<FutureKlineItem> getKlineByPage(String symbol, FutureKType period, String beginTime, String endTime) throws TigerApiException
symbol - contract codeperiod - kline tpyebeginTime - begin time. format:"2022-04-25 00:00:00"endTime - end time. formae:"2022-04-28 00:00:00"TigerApiExceptionpublic static List<FutureKlineItem> getKlineByPage(String symbol, FutureKType period, String beginTime, String endTime, int totalSize) throws TigerApiException
symbol - contract codeperiod - kline tpyebeginTime - begin time. format:"2022-04-25 00:00:00"endTime - end time. formae:"2022-04-28 00:00:00"totalSize - total size. the max value is 10000TigerApiExceptionpublic static List<FutureKlineItem> getKlineByPage(String symbol, FutureKType period, String beginTime, String endTime, TimeZoneId zoneId, int pageSize, int totalSize, long timeInterval) throws TigerApiException
symbol - contract codeperiod - kline tpyebeginTime - begin time. format:"2022-04-25 00:00:00"endTime - end time. formae:"2022-04-28 00:00:00"zoneId - zone, the default is NewYorkpageSize - page size. the default is 1000totalSize - total size. the default is 10000timeInterval - request interval milliseconds, the default is 2000TigerApiExceptionpublic static <T> List<T> getKlineByPage(T t, String symbol, String period, String beginTime, String endTime, TimeZoneId zoneId, RightOption right, int pageSize, int totalSize, long timeInterval) throws TigerApiException
t - return type,only for FutureKlineItem(MethodName.FUTURE_KLINE) and KlineItem(MethodName.KLINE)symbol - symbol or future contract codeperiod - kline tpyebeginTime - begin time. format:"2022-04-25 00:00:00"endTime - end time. formae:"2022-04-28 00:00:00"zoneId - zone, the default is NewYorkright - adjust type(only for stock). the default is br(adjusted)pageSize - page size. the default is 1000totalSize - total size. the default is 10000timeInterval - request interval milliseconds, the default is 2000TigerApiExceptionCopyright © 2024. All rights reserved.