lib/ig_markets/dealing_platform/position_methods.rb
def validate
          validate_required_attributes
          Position.validate_order_type_constraints attributes
          validate_trailing_stop_constraints
          validate_stop_and_limit_constraints
          validate_guaranteed_stop_constraints
        end
# Runs a series of validations on this model's attributes to check whether it is ready to be sent to the IG
# Markets API.
Runs a series of validations on this model's attributes to check whether it is ready to be sent to the IG
Markets API.
Runs a series of validations on this model ' s attributes to check whether it is ready to be sent to the IG Markets API .
def validate
          validate_required_attributes
          Position.validate_order_type_constraints attributes
          validate_trailing_stop_constraints
          validate_stop_and_limit_constraints
          validate_guaranteed_stop_constraints
        end
def validate validate_required_attributes Position . validate_order_type_constraints attributes validate_trailing_stop_constraints validate_stop_and_limit_constraints validate_guaranteed_stop_constraints end
Runs a series of validations on this model's attributes to check whether it is ready to be sent to the IG
Markets API.
Runs a series of validations on this model ' s attributes to check whether it is ready to be sent to the IG Markets API .