User does not have required agreements

Added by Dorte about 5 years ago

Hi,

When I use the nExt API Documentation to send my request I get this, I work on the same paper as always 101 on market 11

Response Body {
"message": "User does not have required agreements.",
"order_id": 898001,
"result_code": "ORDER_MISSING_AGREEMENT",
"order_state": "DELETED",
"action_state": "INS_FAIL"
}

The same order from my application :

{"identifier":"101","market_id":11,"price":90.0,"currency":"SEK","volume":10,"side":"BUY","order_type":"NORMAL","valid_until":"2015-11-01","type":"BUY"}

gives this reply

OrderReply {
order_id: 0
result_code: INPUT_ERROR
order_state: DELETED
action_state: INS_FAIL
message: Invalid input parameter.
}

Could you please see why I am blocked like this?

Thanks
Dorte


Replies (13)

RE: User does not have required agreements - Added by Björn about 5 years ago

I assume that you are trying to make an "Enter Order" request using the HTTP service...

ORDER_MISSING_AGREEMENT is, from my own experience, typically received when you try to short an instrument without having "credentials" to do so. That has to be requested through Nordnet, for example using this forum.

Regarding your own application, could you post the actual request being made using some kind of http dump? Nordnet might be able to help you with the information you provided, but no one else can.
You do send the order using HTTP form data, right? And not using the JSON object that you have included in your question?

RE: User does not have required agreements - Added by Dorte about 5 years ago

Thanks Björn, you were right about the price I tried to use, guess it had come quite off the 82 SEK that was the morning price.

I did two tests one from NN's test API clearly with the wrong value and one from my program that uses JSON, I don't use an HTTP form based interface, I only work in JSON and the request above is what I actually sent. Looking closely at my statement I now see what the problem is I have a "type" too much, somehow my @JsonIgnore seems to be ignored, but at least now I know what to look for.

RE: User does not have required agreements - Added by Björn about 5 years ago

Ah, I didn't spot the extra type=BUY. Glad you found it.

But I am surprised... You're saying that it's possible to send requests using JSON? With Content-Type=application/json?
I didn't realize it was possible. All examples I have looked at have used application/x-www-form-urlencoded instead.

RE: User does not have required agreements - Added by Dorte almost 5 years ago

It is, I started developing on v1 and originally used this example https://api.test.nordnet.se/projects/api/wiki/Java_example to get started.

RE: User does not have required agreements - Added by Björn almost 5 years ago

I still don't get it. What part of that Java example makes requests using JSON objects?

RE: User does not have required agreements - Added by Joachim almost 5 years ago

This one will receive a json back.

String resp = baseResource.path("accounts").request(responseType).get(String.class);

RE: User does not have required agreements - Added by Björn almost 5 years ago

Receiving responses in JSON is not the issue. JSON is the only supported content type for that in v2 as far as I know.
The question was about sending requests using JSON instead of standard "form data" (application/x-www-form-urlencoded).

RE: User does not have required agreements - Added by Lars almost 5 years ago

Why don't you just try it? I did and it seems to work fine, much to my surprise!

RE: User does not have required agreements - Added by Joachim almost 5 years ago

Just setup a SSL socket and build your json with jackson as stated in the subscribe type etc..etc.

RE: User does not have required agreements - Added by David about 4 years ago

I got the

INPUT_ERROR

error code when I tried to set valid_until to a date when the market was not open.

I saw that when trying to replicate the exact same order in the web gui, then the date I wanted to set was greyed out.

IN your example valid_until = NOV 1, 2015which was a saturday so probably that was the problem.

RE: User does not have required agreements - Added by sunh 6 days ago

먹튀검증 Hello! Nice to meet you. 먹튀검증 First of all,안전놀이터 thank you very much for 토토사이트 providing us with this variety of information. 꽁머니 I think it's information that can be used in many ways.안전놀이터 I can't imagine how much effort you've made to write this. 스포츠중계 Thank you for your hard work.꽁머니 I would appreciate it if you would continue to provide us with such information. In addition, https://mtboan.com/ COVID-19 is becoming a problem all over the world these days.먹튀보안관 I hope there's no harm to you and your family. 먹튀가디언 Thank you https://twiddeo.com/ And the information on my site 토토안전놀이터 I'm sure you'll admire it. 안전토토사이트 is awesome. I am sure it will be because I am also surprised by your 꽁머니토토 And if you visit my site, 메이저안전놀이터 I think there will be a lot of information you want 안전놀이터추천 Or, if you have the purpose of inquiry, it would be nice to say 먹튀사이트조회

RE: User does not have required agreements - Added by sunh 6 days ago

토토레프리 That's a very good story! 먹튀검증 I read your article very deeply. Hello, 먹튀 my name is 먹튀검증업체 and I run a site similar to yours. Compared to you, https://elephonemobile.com/ the site I run is not enough. 먹튀사이트 However, 메이저놀이터 I am also working hard to upload more than 2 posts a week. If you are interested, 메이저놀이터 please visit my website. 사설토토 I would appreciate 메이저사설토토 it if you could visit and read my article and leave your comments.사설놀이터 It will be of 안전놀이터 great help to me. Anyway, 안전놀이터 have a nice day 토토사이트 today and thank you for your hard work.메이저토토사이트 Thank you, Have a nice day! 토토사이트추천 good bye토토사이트

RE: User does not have required agreements - Added by sunh 6 days ago

안전놀이터검증및연구센터 Have you been writing 토토사이트분석전문블로그 this for a long time? 먹튀검증의새로운패러다임 I think he's an expert in https://kipu.com.ua/ this field. https://remarka.kz/ I think so. https://subtitles.ee/ That's how high quality your writing is. 안전놀이터 I also run a website with 먹튀검증 a topic similar to your article. 토토사이트 But I'm still lacking a lot 먹튀사이트검증 because it hasn't been long since 메이저토토사이트 I started running the website. 메이저안전놀이터 It would be great 안전한사설토토사이트 if I could write and 공식안전놀이터 post as well as you. 먹튀검증커뮤니티 Great! You must have put a lot of 먹튀검증토토사이트 effort into writing these posts. 먹튀검증토토 I hope I can work hard in 사설안전놀이터] the future to write a similar level of writing to you. Thank you so much for letting me read this again. I would appreciate it if you could let me read more posts with good content. Then have a good day.Nowadays,토토사이트검증업체 the weather is getting colder every day토토안전놀이터 , so wear warm clothes and watch out for a cold 확실한먹튀검증 It's really cool 검증토토사이트. I'd like to know more information. Just like your 안전한먹튀검증 I have 최고의안전놀이터

(1-13/13)