Jump to content

Search the Community

Showing results for tags 'statusreason71'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Gain Capital API FAQ
    • General Questions and Discussion

Found 1 result

  1. I was able to attach limit orders to new trades without any issues when using my demo account (so that my position is closed at a given price). However, when I tried to do the same thing in my Live account, the trade placement fails because the associated limit order fails with "StatusReason":71,"Status":10 . According to the error codes docs, reason 71 is "This Market does not allow limit orders". When I remove the limit order to my new trade post request, the trade is placed successfully. When I add it back, trade placement fails. I am using the STP Pro account for my live account so could it be that it doesn't support limit orders? Here is my New trade request (with sensitive info removed): { "MarketId": 400723798, "Direction": "buy", "Quantity": 100000, "BidPrice": 107.2129, "OfferPrice": 107.21293, "AuditId": "dGDHFKIE_FX_GDJU12378", "TradingAccountId": "12345678", "PositionMethodId": 1, "IfDone": [ { "Limit": { "OrderId": null, "Direction": "sell", "Applicability": "gtc", "ExpiryDateTimeUTC": null, "Quantity": 100000, "TriggerPrice": 107.21416, "IfDone": [], "OcoOrder": null } } ], "Reference": "GCAPI" } Am I missing something in my request or is there a limitation with my account type and the API? Thanks, CRB