calculateKlineData static method
Implementation
static List<Market> calculateKlineData(
YKChartType type, List<Market> dataList) {
switch (type) {
case YKChartType.MA:
return _calculatePriceMa(dataList);
case YKChartType.VOL:
return _calculateVolumeMa(dataList);
default:
return dataList;
}
}