Regular.Polygon 1.0.0-preview.1

This is a prerelease version of Regular.Polygon.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Regular.Polygon --version 1.0.0-preview.1                
NuGet\Install-Package Regular.Polygon -Version 1.0.0-preview.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="Regular.Polygon" Version="1.0.0-preview.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Regular.Polygon --version 1.0.0-preview.1                
#r "nuget: Regular.Polygon, 1.0.0-preview.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 Regular.Polygon as a Cake Addin
#addin nuget:?package=Regular.Polygon&version=1.0.0-preview.1&prerelease

// Install Regular.Polygon as a Cake Tool
#tool nuget:?package=Regular.Polygon&version=1.0.0-preview.1&prerelease                

Regular.Polygon

Name Status History
GitHub Actions Build GitHub Actions Build History

GitHub release GitHub license GitHub issues GitHub issues-closed

What is Regular.Polygon?

Regular.Polygon is a library for interacting with Polygon's financial information APIs. See their documentation here. It is supported for .net 6.0+.

Where can I get it?

Regular.Polygon is available at nuget.org.

Package Manager PM > Install-Package Regular.Polygon

How it works?

You can make all calls to Polygon's Rest API via the IPolygonApi interface.

Initialize Regular.Polygon

Register Regular.Polygon with the application services:

services.AddPolygonApi(<key>);

where <key> is an API key provided by Polygon.

Use IPolygonApi

Receive an instance of the IPolygonApi interface from the application services and make API calls via this instance.

public class StockService
{
	private readonly IPolygonApi _polygonApi;

	public StockService(IPolygonApi polygonApi)
	{
		_polygonApi = polygonApi;
	}

	public async Task DoSomething()
	{
		var marketStatus = await _polygonApi.GetMarketStatus();
	}
}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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 is compatible.  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. 
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.0.0-preview.4 50 6/3/2024
1.0.0-preview.3 147 12/12/2023
1.0.0-preview.2 95 5/31/2023
1.0.0-preview.1 78 5/19/2023