IOrderDraftsApiValidate Method

GF API Documentation
Checks order draft validity.

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

IReadOnlyList<OrderDraftValidationError> Validate(
	BaseOrderDraft draft
)

Parameters

draft
Type: GF.Api.Orders.DraftsBaseOrderDraft

Return Value

Type: IReadOnlyListOrderDraftValidationError
Validation errors. Empty if correct
Remarks

This method checks whether order draft properties are filled correctly and draft is ready to send. Object properties, such as IAccount and IContract needs to be assigned, Quantity should be non-zero positive; Side and Type should be set to valid values; Price and Price2 must be assigned only if given order type requires price(s).
See Also

Reference