Price Conditions

View as MarkdownOpen in Claude

A Price Condition will trigger if an order should transmit or cancel when a given contract’s price goes above or beyond a given threshold.

See PriceCondition for more details on the PriceCondition class.

priceCondition = PriceCondition()
priceCondition.conId = conId
priceCondition.exchange = exchange
priceCondition.isMore = isMore
priceCondition.triggerMethod = triggerMethod
priceCondition.price = price
base_order.conditions = [priceCondition]