Margin Conditions

View as MarkdownOpen in Claude

Margin Conditions permit users to ready an order in case their order starts falling to a given threshold that may lead to liquidation or to submit an order after ample margin cushion has been established.

See MarginCondition for more details on the MarginCondition class.

1marginCondition = order_condition.Create(OrderCondition.Margin)
2marginCondition.isMore = isMore
3marginCondition.percent = percent
4marginCondition.isConjunctionConnection = isConjunction
5
6base_order.conditions = [marginCondition]