Avapi 1.3.1
See the version list below for details.
dotnet add package Avapi --version 1.3.1
NuGet\Install-Package Avapi -Version 1.3.1
<PackageReference Include="Avapi" Version="1.3.1" />
paket add Avapi --version 1.3.1
#r "nuget: Avapi, 1.3.1"
// 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:
- Register to Alpha Vantage web site and get your personal api key (https://www.alphavantage.co/support/#api-key). It's for free!
- Install Avapi package on your project
- Consume the Avapi library
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:
- Create an empty folder. Get into that folder and run the following command:
$ dotnet new console
- Add the package to your project
dotnet add package Avapi --version 1.3.1
- Restore the project
$ dotnet restore
- 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).
- Run the following commands:
$ dotnet run
- 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 | Versions 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. |
-
.NETCoreApp 1.1
- Microsoft.NETCore.App (>= 1.1.2)
- Newtonsoft.Json (>= 10.0.3)
-
.NETStandard 2.0
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 10.0.3)
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 | 84,379 | 9/6/2018 |
1.4.8.1 | 3,622 | 2/24/2018 |
1.4.7.9 | 1,782 | 1/14/2018 |
1.4.7.8 | 1,601 | 1/3/2018 |
1.4.7.7 | 1,514 | 1/3/2018 |
1.4.7.6 | 1,488 | 12/31/2017 |
1.4.7.5 | 1,469 | 12/30/2017 |
1.4.7.4 | 1,542 | 12/30/2017 |
1.4.7.3 | 1,517 | 12/30/2017 |
1.4.7.2 | 1,569 | 12/30/2017 |
1.4.7.1 | 1,484 | 12/30/2017 |
1.4.6.3 | 1,467 | 12/29/2017 |
1.4.5 | 1,553 | 12/5/2017 |
1.3.2 | 1,646 | 11/21/2017 |
1.3.1 | 1,611 | 10/8/2017 |
1.2.2 | 1,379 | 9/20/2017 |
1.2.1 | 1,676 | 9/19/2017 |
1.2.0 | 1,571 | 9/18/2017 |
1.1.0 | 1,443 | 9/16/2017 |
1.0.1 | 1,765 | 9/9/2017 |
1.0.0 | 1,974 | 9/3/2017 |
1) Added the ability to PARSE the RESPONSE of SECTOR operation
2) Added support for .NET Standard 2.0