Checks order draft validity.
Namespace:
GF.Api.Orders.Drafts
Assembly:
GF.Api (in GF.Api.dll) Version: dd7171be68430789135ec75c4e9f4bbfeca31201
IReadOnlyList<OrderDraftValidationError> Validate(
BaseOrderDraft draft
)
Function Validate (
draft As BaseOrderDraft
) As IReadOnlyList(Of OrderDraftValidationError)
IReadOnlyList<OrderDraftValidationError^>^ Validate(
BaseOrderDraft^ draft
)
Parameters
- draft
- Type: GF.Api.Orders.DraftsBaseOrderDraft
Return Value
Type:
IReadOnlyListOrderDraftValidationErrorValidation errors. Empty if correct
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).
Reference