Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 2.17 KB

README.md

File metadata and controls

42 lines (33 loc) · 2.17 KB

.NET Core GitHub license NuGet downloads

Quality Gate Status Bugs Code Smells Coverage Duplicated Lines (%)

Mutation testing badge

Betfair

Fast and simple classes for interacting with the Betfair API and Stream.

Full documentation.

Installation

Available on NuGet

dotnet add package Betfair

or

PM> Install-Package Betfair

Subscribe to a Market Stream

Create a Subscription. Then use a MarketFilter to start a stream.
Full subscription documentation.

var credentials = new Credentials("USERNAME", "PASSWORD", "APP_KEY");
using var subscription = new Subscription(credentials);

await subscription.Subscribe(new StreamMarketFilter().WithMarketIds("MARKET_ID"));
await foreach (var change in subscription.ReadLines(default))
{
	// Handle changes
}