File: WebAPI/strategy_definition_2.proto
Child node definition within the parent strategy tree. Can be either a resolved contract (leg) or a nested strategy.
Type: uint32
Description: Specified node operation, one of NodeOperation enums, the default is SUM.
Type: LegDefinition
Description: Leg definition, if the node is a resolved contract.
Type: NestedStrategy
Description: Nested strategy, mutually exclusive with ‘leg’ attribute.
Description: Operation on a node of the synthetic strategy. Associating an operation with a node allows using different operations, e.g., multiplication and subtraction, without introducing intermediate StrategyDefinition entities. MUL and DIV cannot be mixed with SUM within the same StrategyDefinition.node_definition array. i.e. node1 / node2 * node3 is allowed, but node1 / node2 + node3 is not.
•NODE_OPERATION_SUM = 1
Add the quantity and the price.
•NODE_OPERATION_MUL = 2
Add the quantity but multiply the price.
•NODE_OPERATION_DIV = 3
Subtract the quantity but divide the price.