Get a market
const url = 'https://example.com/api/markets/market';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/markets/marketPass exactly one of slug or id.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Successful Response
object
Window length, e.g. ‘5m’.
The line of windows this one belongs to, e.g. ‘btc-updown-5m’: the slug without its time.
Window start, epoch ms.
Window end, epoch ms.
‘open’, then ‘live’ once the window has started and has a strike. ‘halted’ instead of either while trading is halted: orders and changes are refused and cancels taken. ‘closed’ when trading ends: at expiry, or earlier if an operator closes it. ‘settled’ once its outcome is recorded.
The taker’s rate on the fee curve, in basis points. Fixed when the market is listed.
The maker’s rate on the fee curve, in basis points. Fixed when the market is listed.
The part of each fill’s taker fee that the maker gets back, in basis points of that fee. Fixed when the market is listed.
Example
{ "winning_outcome": "up"}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}