public async Task <JArray> Opcoes([FromBody] JObject body) { ScrapperOpcoesService service = new ScrapperOpcoesService("https://statusinvest.com.br/opcoes/petr4"); JObject opcoes = await service.GetOpcoes(); return(opcoes.Value <JObject>(body.Value <string>("tipo")).Value <JArray>(body.Value <string>("vencimento"))); }
public async Task <JArray> VencimentosPut() { ScrapperOpcoesService service = new ScrapperOpcoesService("https://statusinvest.com.br/opcoes/petr4"); return(await service.GetVencimentosPut()); }