Ejemplo n.º 1
0
        public async Task GetIncomeStatement_Should_FetchResults()
        {
            var config = new ConfigurationBuilder()
                         .AddJsonFile("appsettings.json")
                         .Build();
            string    token  = config["TOKEN"];
            IEXClient client = new IEXClient(IEXBaseUrl.SandboxUrl, token);
            string    result = await client.GetIncomeStatement("AAPL", 4, "quarter");

            result.Should().NotBeNullOrEmpty();

            result = await client.GetIncomeStatement("AAPL", 4, "annual");

            result.Should().NotBeNullOrEmpty();
        }