resp = client.get_markets(next_cursor = "")
print(resp)
print("Done!")

Get available CLOB markets (paginated).

HTTP REQUEST

GET /<clob-endpoint>/markets?next_cursor=<next_cursor>

Request Parameters

NameRequiredTypeDescription
next_cursornostringcursor to start with, used for traversing paginated response

Response Format

NameTypeDescription
limitnumberlimit of results in a single page
countnumbernumber of results
next_cursorstringpagination item to retrieve the next page base64 encoded. ‘LTE=’ means the end and empty (”) means the beginning
dataMarket[]list of markets

A Market object is of the form:

NameTypeDescription
condition_idstringid of market which is also the CTF condition ID
question_idstringquestion id of market which is the CTF question ID which is used to derive the condition_id
tokensToken[2]binary token pair for market
rewardsRewardsrewards related data
minimum_order_sizestringminimum limit order size
minimum_tick_sizestringminimum tick size in units of implied probability (max price resolution)
categorystringmarket category
end_date_isostringiso string of market end date
game_start_timestringiso string of game start time which is used to trigger delay
questionstringquestion
market_slugstringslug of market
min_incentive_sizestringminimum resting order size for incentive qualification
max_incentive_spreadstringmax spread up to which orders are qualified for incentives (in cents)
activebooleanboolean indicating whether market is active/live
closedbooleanboolean indicating whether market is closed/open
seconds_delayintegerseconds of match delay for in-game trade
iconstringreference to the market icon image
fpmmstringaddress of associated fixed product market maker on Polygon network

Where the Token object is of the form:

NameTypeDescription
token_idstringerc1155 token id
outcomestringhuman readable outcome

Where the Rewards object is of the form:

NameTypeDescription
min_sizenumbermin size of an order to score
max_spreadnumbermax spread from the midpoint until an order scores
event_start_datestringstring date when the event starts
event_end_datestringstring date when the event ends
in_game_multipliernumberreward multiplier while the game has started
reward_epochnumbercurrent reward epoch
resp = client.get_markets(next_cursor = "")
print(resp)
print("Done!")