Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Possible problem with MarketFilter #14

Closed
Bl4cksunLtd opened this issue Feb 14, 2018 · 1 comment · Fixed by #17
Closed

Possible problem with MarketFilter #14

Bl4cksunLtd opened this issue Feb 14, 2018 · 1 comment · Fixed by #17

Comments

@Bl4cksunLtd
Copy link
Contributor

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.

@Nyarum
Copy link
Owner

Nyarum commented Feb 17, 2018

@Bl4cksunLtd thanks, I'll check that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants