On the wire · 04:56:37 UTC Live 566 · Prematch 14,380 · Markets 56,925 Vol. I · No. 5 · Friday 13 November 2026 wss://pinnfeed.io/v1/stream
PinnFeed
Answer · .NET · WebSocket

C# / .NET WebSocket client

Updated · PinnFeed · 1 min read

Answer: use System.Net.WebSockets.ClientWebSocket, set x-api-key via Options.SetRequestHeader, connect to wss://pinnfeed.io/v1/stream, subscribe, and reply to ping. Builder (€99/mo).

Sketch#

using var ws = new ClientWebSocket();
ws.Options.SetRequestHeader("x-api-key", Environment.GetEnvironmentVariable("PINNFEED_KEY"));
await ws.ConnectAsync(new Uri("wss://pinnfeed.io/v1/stream"), CancellationToken.None);
// SendAsync UTF-8 JSON subscribe; on ping send {"type":"pong"}

Related: TypeScript, docs.

Trial CTA#

Builder (€99/mo) for the live + prematch WebSocket and closing history. 3-day trial; card required, charged after day 3 unless cancelled. Free delayed REST: signup. Related: answers hub, docs, pricing.

Questions people ask#

Does this work on .NET Framework?#

Prefer modern .NET with ClientWebSocket. Older stacks may need a third-party WS library that can set headers.

Can I use SignalR?#

Not required — the feed is a plain WebSocket, not a SignalR hub.

Is this educational content for adults?#

Yes (18+).

The WebSocket plan: Builder, €99/mo.

Real-time Pinnacle odds pushed over one WebSocket, all 13 sports, every market, no-vig fair odds and closing lines. 3 days free, cancel in one click.

Form K-1 · Free API key

Get your free API key.

One field. No password, no card: enter your email, click the link we send, and your key is on screen.

By continuing you agree to the Terms and Privacy Policy.

One free key per email. Link valid for 20 minutes.