Skip to main content

Properties

NameTypeDescriptionNotes
order_idstr[optional]
client_order_idstr[optional]
tickerstr[optional]
sidestr[optional]
actionstr[optional]
typestr[optional]
statusstr[optional]
yes_pricefloat[optional]
no_pricefloat[optional]
countint[optional]
fill_countintThe number of contracts that have been filled[optional]
remaining_countint[optional]
initial_countintThe initial size of the order (contract units)[optional]
taker_feesintFees paid on filled taker contracts, in cents[optional]
maker_feesintFees paid on filled maker contracts, in cents[optional]
expiration_timedatetime[optional]
created_timedatetime[optional]
updated_timedatetime[optional]

Example

from kalshi_python.models.order import Order

# Create an instance with example data
order_instance = Order(
    # Add required fields here
)

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

# Create from JSON string
order_from_json = Order.from_json(json_str)

# Convert to dict
order_dict = order_instance.to_dict()

# Create from dict
order_from_dict = Order.from_dict(order_dict)
[Back to Model list] [Back to API list] [Back to README]