GET api/events/{eventId}/markets?byPassEventMarketCache={byPassEventMarketCache}&lang={lang}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| eventId | integer |
Required |
|
| byPassEventMarketCache | boolean |
Default value is False |
|
| lang | string |
Default value is en |
Body Parameters
None.
Response Information
Resource Description
BO.BETResponseObjects.BaseResponseOfSystem.Collections.Generic.ListOfBO.Models.Event.MarketModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ResponseObject | Collection of BO.Models.Event.MarketModel |
None. |
|
| ResponseMessage | string |
None. |
|
| ResponseType | BO.Enums.ResponseType |
None. |
Response Formats
application/json, text/json
Sample:
{
"responseObject": [
{
"id": 1,
"name": "sample string 2",
"nameExtra": "sample string 3",
"number": 4,
"marketStatusId": 5,
"eventDetailId": 6,
"eventId": 7,
"feedEventId": 8,
"eventBetTypeId": 9,
"offeredOdds": {
"dec": 1.0,
"frac": "sample string 1",
"int": 1.0
},
"betTypeGroupId": 10,
"startingOdds": {
"dec": 1.0,
"frac": "sample string 1",
"int": 1.0
},
"previousOdds": {
"dec": 1.0,
"frac": "sample string 1",
"int": 1.0
},
"horseRacing": {
"favourite": true,
"finishingPosition": 1,
"firstTimer": true,
"scratchingPct": 1.0,
"jockey": "sample string 2",
"trainer": "sample string 3",
"drawNumber": 4,
"weight": 5.0,
"age": 6,
"gender": "A",
"silkUrl": "sample string 8",
"raceDistance": 9.0,
"form": "sample string 10",
"comments": "sample string 11"
},
"feedTournamentId": 11
},
{
"id": 1,
"name": "sample string 2",
"nameExtra": "sample string 3",
"number": 4,
"marketStatusId": 5,
"eventDetailId": 6,
"eventId": 7,
"feedEventId": 8,
"eventBetTypeId": 9,
"offeredOdds": {
"dec": 1.0,
"frac": "sample string 1",
"int": 1.0
},
"betTypeGroupId": 10,
"startingOdds": {
"dec": 1.0,
"frac": "sample string 1",
"int": 1.0
},
"previousOdds": {
"dec": 1.0,
"frac": "sample string 1",
"int": 1.0
},
"horseRacing": {
"favourite": true,
"finishingPosition": 1,
"firstTimer": true,
"scratchingPct": 1.0,
"jockey": "sample string 2",
"trainer": "sample string 3",
"drawNumber": 4,
"weight": 5.0,
"age": 6,
"gender": "A",
"silkUrl": "sample string 8",
"raceDistance": 9.0,
"form": "sample string 10",
"comments": "sample string 11"
},
"feedTournamentId": 11
}
],
"responseMessage": "sample string 1",
"responseType": 1
}
application/xml, text/xml
Sample:
<BaseResponseOfListOfMarketModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ResponseObject>
<MarketModel>
<Id>1</Id>
<Name>sample string 2</Name>
<NameExtra>sample string 3</NameExtra>
<Number>4</Number>
<MarketStatusId>5</MarketStatusId>
<EventDetailId>6</EventDetailId>
<EventId>7</EventId>
<FeedEventId>8</FeedEventId>
<EventBetTypeId>9</EventBetTypeId>
<OfferedOdds>
<Dec>1</Dec>
<Frac>sample string 1</Frac>
<Int>1</Int>
</OfferedOdds>
<BetTypeGroupId>10</BetTypeGroupId>
<StartingOdds>
<Dec>1</Dec>
<Frac>sample string 1</Frac>
<Int>1</Int>
</StartingOdds>
<PreviousOdds>
<Dec>1</Dec>
<Frac>sample string 1</Frac>
<Int>1</Int>
</PreviousOdds>
<HorseRacing>
<Favourite>true</Favourite>
<FinishingPosition>1</FinishingPosition>
<FirstTimer>true</FirstTimer>
<ScratchingPct>1</ScratchingPct>
<Jockey>sample string 2</Jockey>
<Trainer>sample string 3</Trainer>
<DrawNumber>4</DrawNumber>
<Weight>5</Weight>
<Age>6</Age>
<Gender>65</Gender>
<SilkUrl>sample string 8</SilkUrl>
<RaceDistance>9</RaceDistance>
<Form>sample string 10</Form>
<Comments>sample string 11</Comments>
</HorseRacing>
<FeedTournamentId>11</FeedTournamentId>
</MarketModel>
<MarketModel>
<Id>1</Id>
<Name>sample string 2</Name>
<NameExtra>sample string 3</NameExtra>
<Number>4</Number>
<MarketStatusId>5</MarketStatusId>
<EventDetailId>6</EventDetailId>
<EventId>7</EventId>
<FeedEventId>8</FeedEventId>
<EventBetTypeId>9</EventBetTypeId>
<OfferedOdds>
<Dec>1</Dec>
<Frac>sample string 1</Frac>
<Int>1</Int>
</OfferedOdds>
<BetTypeGroupId>10</BetTypeGroupId>
<StartingOdds>
<Dec>1</Dec>
<Frac>sample string 1</Frac>
<Int>1</Int>
</StartingOdds>
<PreviousOdds>
<Dec>1</Dec>
<Frac>sample string 1</Frac>
<Int>1</Int>
</PreviousOdds>
<HorseRacing>
<Favourite>true</Favourite>
<FinishingPosition>1</FinishingPosition>
<FirstTimer>true</FirstTimer>
<ScratchingPct>1</ScratchingPct>
<Jockey>sample string 2</Jockey>
<Trainer>sample string 3</Trainer>
<DrawNumber>4</DrawNumber>
<Weight>5</Weight>
<Age>6</Age>
<Gender>65</Gender>
<SilkUrl>sample string 8</SilkUrl>
<RaceDistance>9</RaceDistance>
<Form>sample string 10</Form>
<Comments>sample string 11</Comments>
</HorseRacing>
<FeedTournamentId>11</FeedTournamentId>
</MarketModel>
</ResponseObject>
<ResponseMessage>sample string 1</ResponseMessage>
<ResponseType>Success</ResponseType>
</BaseResponseOfListOfMarketModel>