Hi,

Trade->IfDone Issues:
I have a SubmitMarketOrder (Trade->MarketOrder) function that works fine but it did not have any IfDone parameters.  Now I have modified my MarketOrder / Trade request to include the IfDone parameters.  Something in the below IfDone block is causing me to get "Red Carded" [ Where's the ref, I want to complain... :-) ].  If I remove the IfDone parameters, the MarketOrder / Trade request functions Ok.

The result codes are:   "Status": 2, "StatusReason": 75, I am pulling what little hair I have left out....  Could you examine the below request / response messages, and try to find the issue and point me in the right direction to get this working.
While you're at it, I have some additional questions:
1 - The "Guaranteed" parameter, is it actually supported?
2 - The "Quantity" parameter, in another forum post, I see you provided an example of an IfDone block to another developer, but you specified the quantity to be "1".  Can you clarify the reason and proper use of this parameter?  I have tried a value of 1, but still get an error saying value must be greater than zero :-/ Thank-you in advance for your answer.

Here is the Post Request:

{
  "IfDone": [
    {
      "Limit": {
        "TrailingDistance": null,
        "TriggerPrice": 1.1333,
        "Guaranteed": false,
        "Applicability": "GTC",
        "OrderId": 0,
        "Direction": "buy",
        "ExpiryDateTimeUTC": null,
        "Quantity": 5003
      }
    },
    {
      "Stop": {
        "TrailingDistance": null,
        "TriggerPrice": 1.1293,
        "Guaranteed": false,
        "Applicability": "GTC",
        "OrderId": 0,
        "Direction": "sell",
        "ExpiryDateTimeUTC": null,
        "Quantity": 5003
      }
    }
  ],
  "MarketID": 401484347,
  "MarketName": "EUR/USD",
  "Direction": "buy",
  "BidPrice": 1.1313,
  "OfferPrice": 1.13149,
  "Quantity": 5003.0,
  "TradingAccountId": 401756423,
  "AuditId": null,
  "PriceTolerance": 5,
  "Close": null,
  "PositionMethodId": 1,
  "QuoteId": null,
  "Reference": "GCAPI",
  "OrderReference": null,
  "Source": null,
  "Currency": null,
  "AutoRollover": false,
  "AllocationProfileId": null
} Here is the Response: {
  "Status": 2,
  "StatusReason": 75,
  "OrderId": 0,
  "Orders": [
    {
      "OrderId": 0,
      "StatusReason": 1,
      "Status": 1,
      "OrderTypeId": 1,
      "Price": 0.0,
      "Quantity": 5003.0,
      "TriggerPrice": 0.0,
      "CommissionCharge": 0.0,
      "IfDone": [],
      "GuaranteedPremium": 0.0,
      "OCO": null,
      "AssociatedOrders": {
        "Stop": {
          "OrderId": 0,
          "StatusReason": 1,
          "Status": 1,
          "OrderTypeId": 2,
          "Price": 0.0,
          "Quantity": 5003.0,
          "TriggerPrice": 1.1293,
          "CommissionCharge": 0.0,
          "IfDone": [],
          "GuaranteedPremium": 0.0,
          "OCO": {
            "OrderId": 0,
            "StatusReason": 49,
            "Status": 10,
            "OrderTypeId": 3,
            "Price": 0.0,
            "Quantity": 5003.0,
            "TriggerPrice": 1.1333,
            "CommissionCharge": 0.0,
            "IfDone": [],
            "GuaranteedPremium": 0.0,
            "OCO": null,
            "AssociatedOrders": {
              "Stop": null,
              "Limit": null
            },
            "Associated": true
          },
          "AssociatedOrders": {
            "Stop": null,
            "Limit": null
          },
          "Associated": true
        },
        "Limit": {
          "OrderId": 0,
          "StatusReason": 49,
          "Status": 10,
          "OrderTypeId": 3,
          "Price": 0.0,
          "Quantity": 5003.0,
          "TriggerPrice": 1.1333,
          "CommissionCharge": 0.0,
          "IfDone": [],
          "GuaranteedPremium": 0.0,
          "OCO": null,
          "AssociatedOrders": {
            "Stop": null,
            "Limit": null
          },
          "Associated": true
        }
      },
      "Associated": false
    }
  ],
  "Quote": null,
  "Actions": [],