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.

marginCondition = order_condition.Create(OrderCondition.Margin)
marginCondition.isMore = isMore
marginCondition.percent = percent
marginCondition.isConjunctionConnection = isConjunction
base_order.conditions = [marginCondition]