Skip to main content

Properties

NameTypeDescriptionNotes
api_key_idstrUnique identifier for the API key
namestrUser-provided name for the API key
created_tsdatetimeTimestamp when the API key was created[optional]

Example

from kalshi_python.models.api_key import ApiKey

# Create an instance with example data
api_key_instance = ApiKey(
    # Add required fields here
)

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

# Create from JSON string
api_key_from_json = ApiKey.from_json(json_str)

# Convert to dict
api_key_dict = api_key_instance.to_dict()

# Create from dict
api_key_from_dict = ApiKey.from_dict(api_key_dict)
[Back to Model list] [Back to API list] [Back to README]