Skip to main content

Properties

NameTypeDescriptionNotes
tickerstr
client_order_idstr[optional]
sidestr
actionstr
countint
typestr
yes_pricefloat[optional]
no_pricefloat[optional]
expiration_tsint[optional]
sell_position_floorint[optional]
buy_max_costint[optional]
post_onlyboolIf set to true, the order will be rejected if it crosses the spread and executes immediately[optional]
order_group_idstrOrderGroupId specifies the order group this order is part of[optional]

Example

from kalshi_python.models.create_order_request import CreateOrderRequest

# Create an instance with example data
create_order_request_instance = CreateOrderRequest(
    # Add required fields here
)

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

# Create from JSON string
create_order_request_from_json = CreateOrderRequest.from_json(json_str)

# Convert to dict
create_order_request_dict = create_order_request_instance.to_dict()

# Create from dict
create_order_request_from_dict = CreateOrderRequest.from_dict(create_order_request_dict)
[Back to Model list] [Back to API list] [Back to README]