Avapi 1.3.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Avapi --version 1.3.1                
NuGet\Install-Package Avapi -Version 1.3.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Avapi" Version="1.3.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Avapi --version 1.3.1                
#r "nuget: Avapi, 1.3.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Avapi as a Cake Addin
#addin nuget:?package=Avapi&version=1.3.1

// Install Avapi as a Cake Tool
#tool nuget:?package=Avapi&version=1.3.1                

Avapi (.NET CORE)

Avapi is a .NET CORE API Wrapper allowing to retrieve data from Alpha Vantage endpoint (https://www.alphavantage.co/).

To start using Avapi you just need to:

To see the complete documentation of Avapi .NET CORE click here

Register to Alpha Vantage

To Claim the Alpha Vantage free API key, you should register here

Install AVAPI .NET CORE

You can manually download the official package here.

... or you can get it from the .NET CLI or from the Package Manager.

from the .NET CLI

dotnet add package Avapi --version 1.3.1

from the Package Manager

Install-Package Avapi -Version 1.3.1

Guided Example on how to consume Avapi library

There are a number of steps you need to follow to use Avapi on .NET CORE environment:

  1. Create an empty folder. Get into that folder and run the following command:
$ dotnet new console
  1. Add the package to your project
dotnet add package Avapi --version 1.3.1
  1. Restore the project
$ dotnet restore
  1. Replace the content of Program.cs created automatically by 1. with the following code:

using System;
using System.IO;
using Avapi.AvapiTIME_SERIES_DAILY;

namespace Avapi
{
    public class Example
    {
        static void Main()
        {
            // Creating the connection object
            IAvapiConnection connection = AvapiConnection.Instance;

            // Set up the connection and pass the API_KEY provided by alphavantage.co
            connection.Connect("Your Alpha Vantage API Key !!!!");

            // Get the TIME_SERIES_DAILY query object
            Int_TIME_SERIES_DAILY time_series_daily =
                connection.GetQueryObject_TIME_SERIES_DAILY();

            // Perform the TIME_SERIES_DAILY request and get the result
            IAvapiResponse_TIME_SERIES_DAILY time_series_dailyResponse = 
            time_series_daily.Query(
                 "MSFT",
                 Const_TIME_SERIES_DAILY.TIME_SERIES_DAILY_outputsize.compact,
                 Const_TIME_SERIES_DAILY.TIME_SERIES_DAILY_datatype.json);

            // Printout the results
            Console.WriteLine("******** RAW DATA TIME_SERIES_DAILY ********");
            Console.WriteLine(time_series_dailyResponse.RawData);

            Console.WriteLine("******** STRUCTURED DATA TIME_SERIES_DAILY ********");
            var data = time_series_dailyResponse.Data;
            if (data.Error)
            {
                Console.WriteLine(data.ErrorMessage);
            }
            else
            {
                Console.WriteLine("Information: " + data.MetaData.Information);
                Console.WriteLine("Symbol: " + data.MetaData.Symbol);
                Console.WriteLine("LastRefreshed: " + data.MetaData.LastRefreshed);
                Console.WriteLine("OutputSize: " + data.MetaData.OutputSize);
                Console.WriteLine("TimeZone: " + data.MetaData.TimeZone);
                Console.WriteLine("========================");
                Console.WriteLine("========================");
                foreach (var timeseries in data.TimeSeries)
                {
                    Console.WriteLine("open: " + timeseries.open);
                    Console.WriteLine("high: " + timeseries.high);
                    Console.WriteLine("low: " + timeseries.low);
                    Console.WriteLine("close: " + timeseries.close);
                    Console.WriteLine("volume: " + timeseries.volume);
                    Console.WriteLine("DateTime: " + timeseries.DateTime);
                    Console.WriteLine("========================");
                }
            }
        }
    }
}

and replace the parameter in connection.Connect(""Your Alpha Vantage API Key !!!!") , with your Alpha Vantage API key (to claim it see above).

  1. Run the following commands:
$ dotnet run
  1. You can enjoy your MSFT Daily time series displayed on your console 😃

Authors: Simone Giuliani and Antonio Papa

Email: if you have any queries or suggestions please send us an email: sgiuliani.apapa at gmail.com

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp1.1 is compatible.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.4.8.3 83,561 9/6/2018
1.4.8.1 3,617 2/24/2018
1.4.7.9 1,776 1/14/2018
1.4.7.8 1,594 1/3/2018
1.4.7.7 1,507 1/3/2018
1.4.7.6 1,481 12/31/2017
1.4.7.5 1,463 12/30/2017
1.4.7.4 1,538 12/30/2017
1.4.7.3 1,513 12/30/2017
1.4.7.2 1,565 12/30/2017
1.4.7.1 1,480 12/30/2017
1.4.6.3 1,463 12/29/2017
1.4.5 1,547 12/5/2017
1.3.2 1,641 11/21/2017
1.3.1 1,607 10/8/2017
1.2.2 1,373 9/20/2017
1.2.1 1,672 9/19/2017
1.2.0 1,565 9/18/2017
1.1.0 1,439 9/16/2017
1.0.1 1,761 9/9/2017
1.0.0 1,963 9/3/2017

1) Added the ability to PARSE the RESPONSE of SECTOR operation
2) Added support for .NET Standard 2.0