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.

1priceCondition = PriceCondition()
2priceCondition.conId = conId
3priceCondition.exchange = exchange
4priceCondition.isMore = isMore
5priceCondition.triggerMethod = triggerMethod
6priceCondition.price = price
7
8base_order.conditions = [priceCondition]