Qluxzz / avanza

A Python library for the unofficial Avanza API
https://qluxzz.github.io/avanza/
MIT License
85 stars 40 forks source link

Order placing servlet URI is 404 #67

Closed dichai1983 closed 1 year ago

dichai1983 commented 1 year ago

/_cqbe/trading/order/new is 404

Does anyone know what it is now?

Thanks

jfla011 commented 1 year ago

Nope, but I would really like to know too.

svennystrom commented 1 year ago

+1

dichai1983 commented 1 year ago

What should we do with it? Should we inspect the web app to see what is the post request & response of the order placing action?

Thanks

dichai1983 commented 1 year ago

P_20221124_112510.jpg

jfla011 commented 1 year ago

found it! ORDER_PLACE_PATH = '/_api/trading-critical/rest/order/new'

jfla011 commented 1 year ago

haha, looks like you just beat me to it :D

Qluxzz commented 1 year ago

69 has been merged and version 4.0.1 has been released with these changes

svennystrom commented 1 year ago

Note that there is a corresponding URL for delete_order: '/_api/trading-critical/rest/order/delete'

I haven't verified if the previous URL is broken though, so could be that an updated is not required.

anirbankrishna commented 1 year ago

dichai1983, how did you figure out the new url? What kind of tool did you use?

dichai1983 commented 1 year ago

dichai1983, how did you figure out the new url? What kind of tool did you use?

It's chrome network tools applied on the web app.

anirbankrishna commented 1 year ago

dicahi1983, have you used the getorder method/function? I got a 400 error from that method. Could it be that the order was already executed when I made the query?

dichai1983 commented 1 year ago

dicahi1983, have you used the getorder method/function? I got a 400 error from that method. Could it be that the order was already executed when I made the query?

No, I haven't used the get order method.

anirbankrishna commented 1 year ago

dicahi1983, have you used the getorder method/function? I got a 400 error from that method. Could it be that the order was already executed when I made the query?

No, I haven't used the get order method.

Thanks dichai1983.