Jump to content
JoelD311

StatusReason 75 - Quantity of stop must equal trade order quantity

Recommended Posts

Request:

{"MarketId":401166447,"Currency":null,"AutoRollover":null,"Direction":"sell","Quantity":10,"QuoteId":null,"PositionMethodId":null,"BidPrice":1.10879,"OfferPrice":1.1089,"AuditId":null,"TradingAccountId":"[Redacted]","IfDone":{"Stop":{"ExpiryDateTimeUTC":null,"Applicability":null,"ParentOrderId":null,"Associated":null,"Guaranteed":false,"OrderId":null,"TriggerPrice":null,"Quantity":10,"TrailingDistance":5.0},"Limit":null},"Close":null,"isTrade":true,"PriceTolerance":1}

Response:

{"Status":2,"StatusReason":75,"OrderId":0,"ErrorMessage":null}

 

Any ideas on this?

Share this post


Link to post

I managed to get more data by adding to my order/trade response object. I am now getting OrderReason 160 in the Orders property of the response.

"Market unavailable due to local regulations or account restrictions. This is supposedly a practice API account. 

{  
   "Status":2,
   "StatusReason":75,
   "OrderId":0,
   "ErrorMessage":null,
   "Orders":[  
      {  
         "OrderId":0,
         "StatusReason":160,
         "Status":10,
         "OrderTypeId":1,
         "Price":0.0,
         "Quantity":10.0,
         "TriggerPrice":0.0,
         "CommissionCharge":0.0,
         "IfDone":[  

         ],
         "GuaranteedPremium":0.0
      }
   ]
}

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×