IOrdersApiSendOSOOrders Method

GF API Documentation
Sends an chain of orders

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

IReadOnlyList<IOrder> SendOSOOrders(
	OrderDraft main,
	OrderDraft other,
	OrderDraft oco,
	OSOGroupingMethod groupingMethod
)

Parameters

main
Type: GF.Api.Orders.DraftsOrderDraft
Main order. Required.
other
Type: GF.Api.Orders.DraftsOrderDraft
Linked child order. Required.
oco
Type: GF.Api.Orders.DraftsOrderDraft
Linked OCO order. Optional.
groupingMethod
Type: GF.Api.Values.OrdersOSOGroupingMethod
Defines how linked orders are grouped

Return Value

Type: IReadOnlyListIOrder
Remarks

- when main order is filled, linked orders are activated as OCO orders

To set a price dependence of the linked orders from the main order user DeltaTicks and DeltaTicks2

See Also

Reference