开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Multiple Price Conditions with "OR"


 

Hi,

I use Python.. Here is what I am trying to do (I removed the imports and made the code simplified here, so that we can focus on the topic, rather than the full code)

First I create "price_condition" (only 1) and in that, they dont have a "isConjunctionConnection" property (even the docs say there is, docs is v9.72 and i am using 9.81.1). I am attaching the order_condition.py file that came with 9.81.1 and from that you can see the property is not there, but its there in another class.. But I am not sure how to use it..

After that, I create an order, then I am? appending the price_condition to the order and sending it.. This works well, but I want to add another price_condition with "OR"

Let me know if its clear.

Thanks.

price_condition = PriceCondition(triggerMethod=PriceCondition.TriggerMethodEnum.Default, conId=contract_id, exch=exchange, isMore=False, price=100)

?

order = Order()

order.action = action

order.orderType = "MKT"

order.totalQuantity = quantity

?

order.conditions.append(price_condition )

Join [email protected] to automatically receive all group messages.