Hi,
I'm trying to subscribe to all horse markets using the following filters:
However, this ends up returning 391 markets which exceeds the 200 market limit. If I only grab GB markets it works fine. However, I would like the ability to be able to get a list of all markets.
Looking at the exchange API doc page:
https://docs.developer.betfair.com/d...nge+Stream+API
I cannot seem to see anything that lets me reduce this number of markets down further. There are 2 options I would like:
1) Give a hard limit on the number of markets (e.g. tell the API to only ever send me 100 markets).
2) Specify a date range (e.g. only obtain markets for the next 6 hours)
Both of these are possible on the web API, so it is possible for me to grab a list of market IDs using the web API and put that list in the market filter.
Is this the way I'm supposed to do this or is there a way to do this kind of filtering through the stream API?
I'm trying to subscribe to all horse markets using the following filters:
Code:
var marketFilter = new API.MarketFilter()
{
EventTypeIds = new List<string>() { "7" },
MarketTypes = new List<string>() { "WIN" },
BettingTypes = new List<API.MarketBettingType?>() { API.MarketBettingType.Odds },
TurnInPlayEnabled = true,
};
var marketDataFilter = new API.MarketDataFilter()
{
Fields = new List<API.MarketFields?>()
{
API.MarketFields.ExMarketDef,
API.MarketFields.ExBestOffers,
API.MarketFields.ExLastTradedPrice,
},
LadderLevels = 1,
};
Looking at the exchange API doc page:
https://docs.developer.betfair.com/d...nge+Stream+API
I cannot seem to see anything that lets me reduce this number of markets down further. There are 2 options I would like:
1) Give a hard limit on the number of markets (e.g. tell the API to only ever send me 100 markets).
2) Specify a date range (e.g. only obtain markets for the next 6 hours)
Both of these are possible on the web API, so it is possible for me to grab a list of market IDs using the web API and put that list in the market filter.
Is this the way I'm supposed to do this or is there a way to do this kind of filtering through the stream API?


Comment