Skip to main content
net6.0net7.0

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

Published
May 19, 2023
3y ago
Total Downloads
893
893

Install

dotnet add package Regular.Polygon --version 1.0.0-preview.1
ProductVersions
.NET
net6.0net7.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 class StockService
{
	private readonly IPolygonApi _polygonApi;

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

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

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 2 target frameworks; confirm the exact target used by your application.The published metadata declares 18 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

Related Guides & Workflows

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