calculateKlineData static method

List<Market> calculateKlineData(
  1. YKChartType type,
  2. List<Market> dataList
)

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;
  }
}