Jump to content

Gez

Members
  • Content count

    2
  • Joined

  • Last visited

About Gez

  • Rank
    Newbie

Contact Methods

  • Yahoo
    gezzyg123@yahoo.com
  1. Thanks for the confirmation of the order behaviour from your testing. I have however found the issue. The StatusReason states that the following error ... Status: 10 (Red Card) StatusReason: 20 The Quantity decimal places exceed the maximum allowed for the market. This occurs because I am assigning a double precision number in the Quantity field of my JSON request which is not rounded to 2 decimal places. "Quantity" = 3.500000000000001 When I round the Quantity to 2 decimal places and format as a string in the JSON request the issue is resolved. "Quantity" = "3.50" Thanks for your help on this.
  2. Why do I receive error: "The Quantity decimal places exceed the maximum allowed for the market." on my demo account for the below new market order attempt? Is the Quantity of 0.35 too low? Error Codes Received Status: 10 (Red Card) StatusReason: 20 The Quantity decimal places exceed the maximum allowed for the market. When I execute ... URL: /order/newtradeorder Body: { "BidPrice": 0.69041, "Direction": "Buy", "MarketId": "400617199", "OfferPrice": 0.69064, "PositionMethodId": 2, "Quantity": 0.35, "TradingAccountId": 403******, "isTrade": true } Response: { "Status": 2, "StatusReason": 75, "OrderId": 0, "Orders": [ { "OrderId": 0, "StatusReason": 20, "Status": 10, "OrderTypeId": 1, "Price": 0.0, "Quantity": 0.35, "TriggerPrice": 0.0, "CommissionCharge": 0.0, "IfDone": [], "GuaranteedPremium": 0.0, "OCO": null, "AssociatedOrders": { "Stop": null, "Limit": null }, "Associated": false } ], "Quote": null, "Actions": [], "ErrorMessage": null }
×