getAnalysisWithMultiFrame method
Implementation
Future<List> getAnalysisWithMultiFrame({
required List<Intervals> intervals,
}) async {
_validationInput(
validateMultiTickers: true,
intervals: intervals,
);
List<String> indicatorsSend =
_formatInputIndicatorsMultiIntervals(intervals: intervals);
final res = await DioManagerClass.getInstance.dioPostMethod(
url: tradingView.screener.toLowerCase(),
body: {
"symbols": {
"tickers": tradingView.symbols,
},
"columns": indicatorsSend,
},
header: {"User-Agent": "tradingview_ta/3.3.0"},
);
if (res.statusCode == 200) {
List<dynamic> output = _formatResToMapMultiInterval(res, intervals);
return output;
} else {
throw Exception(res.data);
}
}