Tradesports SportsBook XML interface
TradeSports has developed an XML interface which lists sports contracts in look and feel of a traditional sportsbook.
The XML interface shows only selected sports contracts which are currently open. It is arranged in a hierarchical structure see XML example. Live Sportsbook XML is generated automatically every half an hour. This XML feed lists only that Tradesports contracts which are we able to transform into new structure. Do not expect all Tradesports contracts in this feed! If you need to get more often updates of live prices or to see all Tradesports contracts use our more advance api.
Elements description:
- league: sports league with attribute name.
- game: encapsulates all information for one game with game's name attribute.
-
teamA, teamB represents teams in game. Attributes:
- name: team name
- code: team code
- rotNum: rotation number
- isAwayTeam: indicates if a team is set up as an away team in Tradesports.
-
win, spread, total: represents three types of Tradesports contracts for current game. Game element
can have more than one even of the same type or none.
- conId: mandatory. Tradesports contract id.
- strike: mandatory only for spread contracts. Strike value from Tradesports contract.
- totalPoints: mandatory only for total contracts
- contractToWin: mandatory for spread and win contract. Indicates which team is set up to win in Tradesports contract. Possible values teamA or teamB.
- htmlLink: link into tradesports trading page, where contract is shown.
-
odds: odds for contracts and team. Attributes:
- for: specify for which team are odds valid. Possible values are:
- teamA or teamB: for spread and win contracts. Indicates if odds are valid for teamA to win or teamB to win.
- over or under: for total points contracts.
- strike: mandatory attribute only for spread contracts.
- for: specify for which team are odds valid. Possible values are:
- moneyLine: money line representation. Value attribute is n/a if no price is available on Tradesports.
- digitalOdds: digital odds representation. Value attribute is n/a if no price is available on Tradesports.
The exchange makes a test trading system available to market makers and program traders to test their applications before going live.
For more information and to get access to the Exchanges API mail us on mmprogram@tradesports.com