Use the DataFilter object to restrict data received in a Betfair stream.
The DataFilter class can be used to build up a list of data required in your Betfair stream.
The following example will return market definitions and best available prices in the Betfair stream.
var dataFilter = new DataFilter().WithMarketDefinition().WithBestPrices();
Includes the definition of all markets you subscribe to in the initial image. You will then receive updates to any fields on each market definition when they change.
var dataFilter = new DataFilter().WithMarketDefinition();
Includes the best available back and lay prices not including virtual prices. The number of ladder levels to receive can be set using .WithLadderLevels()
,
if undefined the default is 3 ladder levels.
var dataFilter = new DataFilter().WithBestPrices();
Includes the best available back and lay prices including virtual prices. The number of ladder levels to receive can be set using .WithLadderLevels()
,
if undefined the default is 3 ladder levels.
The virtual price stream is updated ~150 m/s after non-virtual prices.
var dataFilter = new DataFilter().WithBestPricesIncludingVirtual();
Includes the full available to BACK/LAY ladder.
var dataFilter = new DataFilter().WithFullOffersLadder();
Includes the full traded ladder. This is the amount traded at any price on any selection in the market.
var dataFilter = new DataFilter().WithFullTradedLadder();
Includes market and runner level traded volume.
var dataFilter = new DataFilter().WithTradedVolume();
Includes the "Last Price Matched" on a selection.
var dataFilter = new DataFilter().WithLastTradedPrice();
Include the starting price ladder.
var dataFilter = new DataFilter().WithStartingPriceLadder();
Includes starting price projection prices.
var dataFilter = new DataFilter().WithStartingPriceProjection();
For depth-based ladders the number of levels to send (1 to 10). 1 is best price to back or lay etc.
var dataFilter = new DataFilter().WithLadderLevels();
You can view the DataFilter class here