Nyarum/betting

Possible problem with MarketFilter

Closed this issue · 1 comments

I'm trying to obtain a marketcatalogue using ListMarketCatalogue and a marketfilter.
It works if I don't specify MarketBettingTypes in my marketfilter.
Including marketbettingtypes always results in an empty set being returned.
Looking at the betfair api definition I think there is an issue with marketfilter.
MarketFilter contains:
MarketBettingTypes []EMarketBettingTypes json:"marketBettingTypes,omitempty"
and EMarketBettingTypes is defined by:
type EMarketBettingTypes []EMarketBettingType

I think that is a slice of slices which is one to many slices, perhaps:

MarketBettingTypes []EMarketBettingType json:"marketBettingTypes,omitempty".......

would be closer to the betfair api:
marketBettingTypes | Set< MarketBettingType>

Please note I haven't tried this yet.

@Bl4cksunLtd thanks, I'll check that.