Jump to content
Sign in to follow this  
anonymous

status reason no 62

Recommended Posts

I try to make simple test trade but get an error, here is the list of Instruction Status Reasons (below) I have found but I have got Status:10, Status Reason: 62 (10 is Red Card, but what is 62? ), any help ? thnkx

1 : OK
2 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
3 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
4 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
5 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
6 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
7 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
8 : The Underlying Bid price must be provided.
9 : The Underlying Offer price must be provided.
10 : Additional narrative must be less than or equal to 2500 characters.
11 : Price audit information must be provided.
12 : The Bid price must be less than or equal to the offer price.
13 : This order is awaiting approval.
14 : This trade/order has already been changed by an earlier instruction.
15 : Trigger level calculation type does not exist.
16 : Trigger level calculation value must be greater than zero.
17 : Trigger level calculation value must not be set.
18 : Trigger Level exceeds the maximum allowed value.
19 : Reference is too long.
20 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
21 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
22 : Invalid Posting Narrative Value
23 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
24 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
25 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
26 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
27 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
28 : Order must be provided.
29 : At least one order must be provided.
30 : The Quantity entered must be greater than zero.
32 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
33 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
34 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
38 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
39 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
42 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
43 : Bid price must be greater than or equal to zero.
45 : Offer price must be greater than or equal to zero.
46 : Order must be of type Stop or Limit.
47 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
48 : Order expiry date/time must not be less than the current UTC date/time.
50 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
51 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
55 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
56 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
60 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
61 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
68 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
69 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
70 : Quote time must be greater than zero.
71 : The bid adjustment must be greater than or equal to zero.
72 : The offer adjustment must be less than or equal to zero.
73 : This instruction is not possible via the Trading Platform
75 : Instruction processing has resulted in a Red Card. Please check details.
81 : Quote must be provided.
82 : The bid AMP adjustment must be less than or equal to zero.
84 : The offer AMP adjustment must be greater than or equal to zero.
87 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
89 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
90 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
91 : Quantity must be less than or equal to 99,999,999
92 : If Done link must contain at least a stop or a limit order.
93 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
95 : Instruction has resulted in a Yellow Card. Please check details.
96 : Instruction has resulted in a quote being generated.
97 : Desk source new instruction to trade must have an associated quote.
98 : Hedge instruction does not support quotes.
99 : New stop/limt order must not have an associated quote.
100 : Order type must be set to Limit.
101 : Order type must be set to Stop.
102 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
103 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
104 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
105 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused.
106 : Order cannot have an associated OCO order.
107 : An error has occurred on your account. Please contact Client Services quoting the reference. We apologise for any inconvenience this may have caused

Share this post


Link to post

It is the Order Status Reason that you need to lookup. Number 62 is: “The bid/offer price entered is not valid within the last three seconds.”

About StatusReason 62, I try to create a new trade, with correct Bid and Ask, but I got an error 62 :

https://ciapipreprod.cityindextest9.co.uk/TradingApi/order/newtradeorder?UserName=…&Session=…

post=‘{ “MarketId”: 99498, “Currency”: “USD”, “AutoRollover”: true, “Direction”: “buy”, “Quantity”: 1, “BidPrice”: 12774, “OfferPrice”: 12775, “TradingAccountId”: 200011279 }’
response=‘{“Actions”:null,“OrderId”:0,“Orders”: [{“CommissionCharge”:0,“GuaranteedPremium”:0,“IfDone”:null,“OCO”:null,“OrderId”:0,“OrderTypeId”:1,“Price”:0,“Quantity”:1,“Status”:10,“StatusReason”:62,“TriggerPrice”:0}], “Quote”:null,“Status”:2,“StatusReason”:75}’

Could you tell me where I’m wrong please ? It’s is possible because I don’t fill AuditIt or QuoteId ?

Share this post


Link to post

It is the Order Status Reason that you need to lookup. Number 62 is: “The bid/offer price entered is not valid within the last three seconds.”

@it-finance

 

The best way to find out how working code should look like is to use Firebug in the Firefox browser, in conjunction with our Flex web trading platform. You can then open a trade using the front end, and in firebug see the code that was posted.

The following is working code for opening a trade. You just need to edit the account credentials, and enter in your MarketID, and other trade details etc.

 var userName = "xx966331";

    doPost('/session',{ "UserName": userName, "Password": "password"}, function (data, textCode) {
setRequestHeader("UserName", userName);
setRequestHeader("Session", data.Session);


doPost('/order/newtradeorder', {"BidPrice":1.59598,"MarketId":400481142,"Direction":"buy","Currency":null,"MarketName":null,"LastChangedDateTimeUTC":null,"ExpiryDateTimeUTCDate":null,"IfDone":null,"ExpiryDateTimeUTC":null,"Status":null,"LastChangedDateTimeUTCDate":null,"OfferPrice":1.59615,"OcoOrder":null,"QuoteId":null,"Type":null,"isTrade":true,"OrderId":0,"TriggerPrice":null,"TradingAccountId":400217768,"AuditId":null,"Applicability":null,"Quantity":1000})

});

Share this post


Link to post

It is the Order Status Reason that you need to lookup. Number 62 is: “The bid/offer price entered is not valid within the last three seconds.”

@physicsman

Hi,

I have try to send exactly the same request than you (on Wall Street CFD) but I still got the same error. I don’t know why :s

https://ciapipreprod.cityindextest9.co.uk/TradingApi/order/newtradeorder?UserName=…&Session=…
post=‘{ “MarketId”: 99498, “Currency”: null, “isTrade”: true, “Direction”:“buy”, “Quantity”: 1, “QuoteId”: null, “BidPrice”: 12896, “OfferPrice”: 12899,“AuditId”: null, “TradingAccountId”: 200011279, “IfDone”: null, “Applicability”:null, “ExpiryDateTimeUTC”: null, “ExpiryDateTimeUTCDate”: null,“LastChangedDateTimeUTC”: null, “LastChangedDateTimeUTCDate”: null,“MarketName”: null, “OcoOrder”: null, “OrderId”: 0, “Status”: null,“TriggerPrice”: null, “Type”: null }’
response=‘{“Actions”:null,“OrderId”:0,“Orders”:[{“CommissionCharge”:0,“GuaranteedPremium”:0,“IfDone”:null,“OCO”:null,“OrderId”:0,“OrderTypeId”:1,“Price”:0,“Quantity”:1,“Status”:10,“StatusReason”:62,“TriggerPrice”:0}],“Quote”:null,“Status”:2,“StatusReason”:75}’

Share this post


Link to post

It is the Order Status Reason that you need to lookup. Number 62 is: “The bid/offer price entered is not valid within the last three seconds.”

@it-finance

Hi,

I’ve looked at your issue with one of the API developers. You do need to supply an AuditID with your market order. A unique AuditId is produced for each price tick that is received from Lighstreamer. You need to supply the AuditID for the matching price that you are trying to place a trade upon.

Clearly, if you are trying to do this manually via the Trading API Test Harness then it is very difficult because of the frequency that the price updates. However, when you do this programatically from the trading front end you are writing then it will work quite well.

Hope that helps!!

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
Sign in to follow this  
×