Skip to main content

A client api for polygon.io stock and options information service.

Total Downloads
893
893
Published
Jun 3, 2024
2y ago

Get Started

dotnet add package Regular.Polygon --version 1.0.0-preview.4
ProductVersions
.NET
net6.0

README

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 sealed class StockService
{
	private readonly IPolygonApi _polygonApi;

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

	public async Task DoSomething()
	{
		var marketStatus = await _polygonApi.GetMarketStatus();
	}
}

Downloads by Version

Similar & Alternative Packages

Hand-picked matching NuGet libraries based on tags & ecosystem

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.