List markets
const url = 'https://example.com/api/markets/markets?limit=100';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/markets?limit=100'Newest listed first. Name at least one of series, status or asset.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Page size, up to 1,000. 100 if not given.
Responses
Section titled “Responses”Successful Response
object
Newest listed first.
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
{ "markets": [ { "winning_outcome": "up" } ]}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}