IOrdersApiSendOCOOrders Method

GF API Documentation
Sends a group of orders as OCO - One cancels other

Namespace:  GF.Api.Orders
Assembly:  GF.Api (in GF.Api.dll) Version: dd7171be68430789135ec75c4e9f4bbfeca31201
Syntax

IReadOnlyList<IOrder> SendOCOOrders(
	OrderDraft leg1,
	OrderDraft leg2
)

Parameters

leg1
Type: GF.Api.Orders.DraftsOrderDraft
leg 1 draft
leg2
Type: GF.Api.Orders.DraftsOrderDraft
leg 2 draft

Return Value

Type: IReadOnlyListIOrder
Remarks

OCO orders sends as a group of mutually exclusive orders - when one order is executed (filled), others are canceled.
See Also

Reference