Skip to content

strategy.oca

Properties

cancel

Type: const string

A named constant for use with the oca_type parameter of the strategy.entry() and strategy.order() commands.

It specifies that the strategy cancels the unfilled order when another order with the same oca_name and oca_type executes.


none

Type: const string

A named constant for use with the oca_type parameter of the strategy.entry() and strategy.order() commands.

It specifies that the strategy does not apply any OCA behavior to the order.


reduce

Type: const string

A named constant for use with the oca_type parameter of the strategy.entry() and strategy.order() commands.

It specifies that the strategy reduces the position of the unfilled order when another order with the same oca_name and oca_type executes.

Released under the MIT License.