getSupportAndResistant method

Future<List<Map<String, dynamic>>> getSupportAndResistant()

Implementation

Future<List<Map<String, dynamic>>> getSupportAndResistant() async {
  List<Map<String, dynamic>> output = [];
  _validationInput();
  List<Map<String, dynamic>> analysis = await getAnalysis();

  for (var i in analysis) {
    output.add(
      {
        "ticker": i["ticker"],
        "SupportAndResistant": _getSupportAndResistantAsMap(i["indicators"]),
      },
    );
  }

  return output;
}