Skip to content

Latest commit

 

History

History
94 lines (80 loc) · 3.19 KB

DataFilter.md

File metadata and controls

94 lines (80 loc) · 3.19 KB

DataFilter

Use the DataFilter object to restrict data received in a Betfair stream.

Contents

Chaining data filters

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();

Available Stream Data

Market Definitions

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();

Best Available Prices

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();

Best Available Virtual Prices

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();

Full Offers Ladder

Includes the full available to BACK/LAY ladder.

var dataFilter = new DataFilter().WithFullOffersLadder();

Full Traded Ladder

Includes the full traded ladder. This is the amount traded at any price on any selection in the market.

var dataFilter = new DataFilter().WithFullTradedLadder();

Traded Volume

Includes market and runner level traded volume.

var dataFilter = new DataFilter().WithTradedVolume();

Last Traded Price

Includes the "Last Price Matched" on a selection.

var dataFilter = new DataFilter().WithLastTradedPrice();

Starting Price Ladder

Include the starting price ladder.

var dataFilter = new DataFilter().WithStartingPriceLadder();

Starting Price Projection

Includes starting price projection prices.

var dataFilter = new DataFilter().WithStartingPriceProjection();

Ladder Levels

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();

Class

You can view the DataFilter class here