contracts
Retrieve contracts by a set of market ids.
Changed onget/v3/markets/{market_ids}/contracts/
Request
- Base URLhttps://api.smarkets.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
market_idsinteger[] required
Market IDs to filter by<br>maxItems:100
Query parameters
include_hiddenboolean
Choose to include in the response contracts that are not visible on the website. Hidden contracts may not be displayed for a varied number of reasons, and are not available to bet on.
jurisdiction'CDG' | 'CFTC' | 'DGA' | 'IGC' | 'IRGC' | 'MGA' | 'SGA' | 'UKGC'
Jurisdiction of user
platform'exchange' | 'sbk'
Platform used by user
Response
Contracts success response
Example response
{
"contracts": [
{
"competitor_id": 2,
"contract_type": {
"name": "HOME",
"param": "apostolos-dedas"
},
"created": "2017-12-16T00:16:25.936519Z",
"display_order": 100,
"hidden": true,
"id": "123456",
"info": {
"color_primary": "#EF0107",
"color_secondary": "#063672",
"primary": true
},
"market_id": "128939",
"modified": "2017-12-21T10:58:09.279148Z",
"name": "Arsenal",
"outcome_timestamp": "2017-12-16T00:16:25.936519Z",
"reduction_factor": "0.45451",
"slug": "arsenal",
"state_or_outcome": "live"
}
]
}Changes
- info
added the non-success response with the status
- info
- info
added the new optional
queryrequest parameterplatform
- info