Qluxzz / avanza

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

place_order() 500 Server Error #94

Closed kafferasten closed 2 months ago

kafferasten commented 3 months ago

Hello!

When trying to run the example snippet for placing an order (which is using the "place_order" function) I get this error

" Message=500 Server Error: Server Error for url: https://www.avanza.se/_api/trading-critical/rest/order/new Source=........ . . result = avanza.place_order( requests.exceptions.HTTPError: 500 Server Error: Server Error for url: https://www.avanza.se/_api/trading-critical/rest/order/new "

Any input on how to solve it? (I can run all the other example snippets and those work fine for me)

Sincerely, kafferasten

kafferasten commented 2 months ago

I had erroneous format in the "valid_until" argument... I will close this.