Upcoming markets
const url = 'https://example.com/api/markets/schedule';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/scheduleWindows that have not ended yet, soonest first. To read the next page, pass the last page’s next_after as after.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Successful Response
object
Soonest 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": {} } ]}