示例#1
0
        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")));
        }
示例#2
0
        public async Task <JArray> VencimentosPut()
        {
            ScrapperOpcoesService service = new ScrapperOpcoesService("https://statusinvest.com.br/opcoes/petr4");

            return(await service.GetVencimentosPut());
        }