Retrieve markets by event ids. This should be done after getting events.
Changed onDescription
Each bettable event has a set of markets. Each market will have a set of contracts.
Request
- Base URLhttps://api.smarkets.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Event IDs to filter by<br>maxItems:50
Query parameters
The only sorting option for markets is to sort by event_id and then by display order
How many markets to retrieve per event, sorted by display order
Filter market types by the popular market types for the event type
Filter markets by a list of market types separated with ,
Choose to include in the response markets that are not visible on the website. Hidden markets may not be displayed for a varied number of reasons, and are not available to bet on.
Jurisdiction of user
Platform used by user
Response
Markets success response
Example response
{
"markets": [
{
"bet_delay": 5,
"cashout_enabled": true,
"categories": [
"goals",
"half_time"
],
"category": "goals",
"complete": true,
"contract_selections": [
254245,
4565452,
7894545
],
"created": "2017-12-16T00:16:25.936519Z",
"description": "To win the event",
"display_order": 100,
"display_type": "bars",
"event_id": "565413",
"hidden": true,
"id": "128939",
"info": {
"commission_rate": "0.02"
},
"inplay_enabled": true,
"market_type": {
"name": "OVER_UNDER",
"param": "2.5"
},
"modified": "2017-12-21T10:58:09.279148Z",
"name": "To win",
"slug": "to-win",
"state": "new",
"winner_count": 1
}
]
}Changes
- warning
added the new
three_ballenum value to the///response property for the response status - warning
added the new
three_ballenum value to the//response property for the response status - info
added the non-success response with the status
- warning
- info
added the new optional
queryrequest parameterplatform
- info