Regular.Polygon
1.0.0-preview.4
dotnet add package Regular.Polygon --version 1.0.0-preview.4
NuGet\Install-Package Regular.Polygon -Version 1.0.0-preview.4
<PackageReference Include="Regular.Polygon" Version="1.0.0-preview.4" />
paket add Regular.Polygon --version 1.0.0-preview.4
#r "nuget: Regular.Polygon, 1.0.0-preview.4"
// Install Regular.Polygon as a Cake Addin #addin nuget:?package=Regular.Polygon&version=1.0.0-preview.4&prerelease // Install Regular.Polygon as a Cake Tool #tool nuget:?package=Regular.Polygon&version=1.0.0-preview.4&prerelease
Regular.Polygon
Name | Status | History |
---|---|---|
GitHub Actions |
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();
}
}
Product | Versions 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 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. |
-
net6.0
- CommunityToolkit.Diagnostics (>= 8.2.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Http (>= 6.0.0)
- Microsoft.Extensions.Logging (>= 6.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 6.0.0)
- Refit (>= 6.3.2)
- Refit.HttpClientFactory (>= 6.3.2)
- System.Net.Http.Json (>= 6.0.0)
- System.Text.Json (>= 6.0.7)
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 | 47 | 6/3/2024 |
1.0.0-preview.3 | 144 | 12/12/2023 |
1.0.0-preview.2 | 92 | 5/31/2023 |
1.0.0-preview.1 | 75 | 5/19/2023 |