getAnalysis method
Implementation
Future<List<Map<String, dynamic>>> getAnalysis() async {
_validationInput();
final res = await DioManagerClass.getInstance.dioPostMethod(
url: tradingView.screener.toLowerCase(),
body: {
"symbols": {
"tickers": tradingView.symbols,
},
"columns": _formatInputIndicators(),
},
header: {"User-Agent": "tradingview_ta/3.3.0"},
);
if (res.statusCode == 200) {
return _formatResToMapSingleInterval(res.data);
} else {
throw Exception(res.data);
}
}