Skip to main content

Properties

NameTypeDescriptionNotes
tickerstr[optional]
series_tickerstrThe series this market belongs to[optional]
event_tickerstr[optional]
titlestr[optional]
subtitlestr[optional]
open_timedatetime[optional]
close_timedatetime[optional]
expiration_timedatetime[optional]
statusstr[optional]
yes_bidfloat[optional]
yes_askfloat[optional]
no_bidfloat[optional]
no_askfloat[optional]
last_pricefloat[optional]
volumeint[optional]
volume_24hint[optional]
resultstr[optional]
can_close_earlybool[optional]
cap_countint[optional]

Example

from kalshi_python.models.market import Market

# Create an instance with example data
market_instance = Market(
    # Add required fields here
)

# Convert to JSON string
json_str = market_instance.to_json()
print(json_str)

# Create from JSON string
market_from_json = Market.from_json(json_str)

# Convert to dict
market_dict = market_instance.to_dict()

# Create from dict
market_from_dict = Market.from_dict(market_dict)
[Back to Model list] [Back to API list] [Back to README]