TBS Apps API

<back to all web services

InMarketBetsRequest

Requires Authentication
The following routes are available for this service:
GET,POST/InMarketBetsGets the in-market bets for the event of the currently authenticated user.
InMarketBetsRequest Parameters:
NameParameterData TypeRequiredDescription
EventIdbodyintNoThe race event id
InMarketBetEvent Parameters:
NameParameterData TypeRequiredDescription
EventIdformint?No
EventTypeIdformint?No
IsJockeySilkExistformbool?No
BetsformList<InMarketBet>No
DerivedEventIdsformList<int>No
InMarketBet Parameters:
NameParameterData TypeRequiredDescription
TabformInMarketBetTabNo
BetIdformlongNo
TotalStakeformdecimalNo
TotalLinesformintNo
BetTypeCodeformstringNo
BetSubTypeCodeformstringNo
DetailsformList<InMarketBetDetail>No
IsDerivedEventformboolNo
IsBlueBoostedformboolNo
FreeBetIDformlongNo
MultipleDisplayTypeformstringNo
PriceformstringNo
InMarketBetDetail Parameters:
NameParameterData TypeRequiredDescription
BetIdformlongNo
BetDetailIdformlongNo
OutcomeIdformintNo
EventIdformintNo
MarketTypeCodeformstringNo
BetDetailTypeCodeformstringNo
DividendTypeCodeformstringNo
FixedPriceformdecimalNo
SelectionStringformstringNo
SelectionsformList<InMarketBetSelection>No
InMarketBetSelection Parameters:
NameParameterData TypeRequiredDescription
BetDetailIdformlongNo
LegIdformintNo
OutcomeIdformintNo
FixedPriceformdecimalNo
OutcomeformInMarketBetOutcomeNo
InMarketBetOutcome Parameters:
NameParameterData TypeRequiredDescription
EventIdformintNo
OutcomeIdformintNo
OutcomeNameformstringNo
BarrierBoxformintNo
ScratchedformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /InMarketBets HTTP/1.1 
Host: tstextweb20.np.bluebet.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"EventId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"EventId":0,"EventTypeId":0,"IsJockeySilkExist":false,"Bets":[{"Tab":"WinPlace","BetId":0,"TotalStake":0,"TotalLines":0,"BetTypeCode":"String","BetSubTypeCode":"String","Details":[{"BetId":0,"BetDetailId":0,"OutcomeId":0,"EventId":0,"MarketTypeCode":"String","BetDetailTypeCode":"String","DividendTypeCode":"String","FixedPrice":0,"SelectionString":"String","Selections":[{"BetDetailId":0,"LegId":0,"OutcomeId":0,"FixedPrice":0,"Outcome":{"EventId":0,"OutcomeId":0,"OutcomeName":"String","BarrierBox":0,"Scratched":false}}]}],"IsDerivedEvent":false,"IsBlueBoosted":false,"FreeBetID":0,"MultipleDisplayType":"String","Price":"String"}],"DerivedEventIds":[0]}