placeOrders function allows bets to be placed.
marketId |
market id into which the bet will be placed |
selectionId |
selection id, the unique id for selection in the market, this will be a horse, a team, etc, these ids can be found using the marketCatalogue and marketBook functions |
orderType |
the type of order, LIMIT a normal exchange order for immediate execution, LIMIT_ON_CLOSE limit order for the auction (SP bet) MARKET_ON_CLOSE market order for the auction (SP) |
handicap |
The handicap associated with the runner in case of Asian handicap markets, null otherwise. |
side |
Back or Lay order |
order |
the type of order, this can be three types and inputs depend on parameter orderType. If orderType is LIMIT then use the limitOrder function to construct order. If orderType is LIMIT_ON_CLOSE use the limitOnCloseOrder function to construct the order. If orderType is MARKET_ON_CLOSE then a simple list consisting of one element called liability should be supplied |
list with details about the bet, the market the bet was made in, the prices attained, whether it was successful or failed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.