Skip to content

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

License

Notifications You must be signed in to change notification settings

michaelmcneilnet/Betfair

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.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
}

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%