Qluxzz / avanza

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

Cannot place new order #71

Closed anirbankrishna closed 1 year ago

anirbankrishna commented 1 year ago

https://www.avanza.se/_api/trading-critical/rest/order/new cannot ne used to place a new order. It returns

URI: /_api/trading-critical/rest/order/new

405 Request method 'GET' not supported dispatcherServlet

The path to place order seems to be https://www.avanza.se/handla/order.html/kop/5249,

where 5249 is the instrument number.

anirbankrishna commented 1 year ago

It seems I was using an older version of the API.