Soenneker.Polymarket.HttpClients
11.0.109
Prefix Reserved
dotnet add package Soenneker.Polymarket.HttpClients --version 11.0.109
NuGet\Install-Package Soenneker.Polymarket.HttpClients -Version 11.0.109
<PackageReference Include="Soenneker.Polymarket.HttpClients" Version="11.0.109" />
<PackageVersion Include="Soenneker.Polymarket.HttpClients" Version="11.0.109" />
<PackageReference Include="Soenneker.Polymarket.HttpClients" />
paket add Soenneker.Polymarket.HttpClients --version 11.0.109
#r "nuget: Soenneker.Polymarket.HttpClients, 11.0.109"
#:package Soenneker.Polymarket.HttpClients@11.0.109
#addin nuget:?package=Soenneker.Polymarket.HttpClients&version=11.0.109
#tool nuget:?package=Soenneker.Polymarket.HttpClients&version=11.0.109
Soenneker.Polymarket.HttpClients
Provides one HttpClient that routes generated requests across Polymarket's Gamma, Data, CLOB, Bridge, Perpetuals, RFQ, and Relayer APIs.
Installation
dotnet add package Soenneker.Polymarket.HttpClients
Usage
using Soenneker.Polymarket.HttpClients.Abstract;
using Soenneker.Polymarket.HttpClients.Registrars;
services.AddPolymarketOpenApiHttpClientAsSingleton();
IPolymarketOpenApiHttpClient polymarket = serviceProvider
.GetRequiredService<IPolymarketOpenApiHttpClient>();
HttpClient client = await polymarket.Get(cancellationToken);
HttpResponseMessage response = await client.GetAsync(
"gamma/events?limit=5",
cancellationToken);
response.EnsureSuccessStatusCode();
The first path segment selects the API host and is removed before the request is sent. For example, gamma/events targets https://gamma-api.polymarket.com/events, while clob/book targets https://clob.polymarket.com/book.
Override individual hosts with Polymarket:BaseUrls:Gamma, Data, Clob, Bridge, Perps, CombosRfq, or Relayer. Public market-data endpoints require no credentials; callers must add the headers and signatures required by private trading or relayer endpoints.
The provider owns the cached routing client. Scoped provider instances receive separate cache entries, so disposing one scope does not invalidate another scope's client.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Extensions.Configuration (>= 11.0.919)
- Soenneker.Utils.HttpClientCache (>= 11.0.2164)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Polymarket.HttpClients:
| Package | Downloads |
|---|---|
|
Soenneker.Polymarket.OpenApiClientUtil
Provides a cached client that routes requests across Polymarket's APIs. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.109 | 98 | 11/19/2026 |
| 11.0.108 | 80 | 11/19/2026 |
| 11.0.107 | 88 | 11/18/2026 |
| 11.0.105 | 81 | 11/18/2026 |
| 11.0.102 | 139 | 11/15/2026 |
| 11.0.101 | 101 | 11/15/2026 |
| 11.0.99 | 119 | 11/11/2026 |
| 11.0.98 | 103 | 11/11/2026 |
| 11.0.97 | 98 | 11/11/2026 |
| 11.0.96 | 95 | 11/11/2026 |
| 11.0.95 | 92 | 11/11/2026 |
| 11.0.94 | 167 | 11/3/2026 |
| 11.0.93 | 119 | 11/3/2026 |
| 11.0.92 | 104 | 11/3/2026 |
| 11.0.91 | 99 | 11/3/2026 |
| 11.0.90 | 105 | 11/3/2026 |
| 11.0.89 | 175 | 10/27/2026 |
| 11.0.88 | 118 | 10/27/2026 |
| 11.0.87 | 122 | 10/26/2026 |
| 11.0.86 | 102 | 10/26/2026 |
Updated Multiple NuGet packages