Skip to content

Update invalid get_order() due to Avanza API change#147

Merged
Qluxzz merged 1 commit intoQluxzz:masterfrom
swechencheng:fix-get-order
Nov 26, 2025
Merged

Update invalid get_order() due to Avanza API change#147
Qluxzz merged 1 commit intoQluxzz:masterfrom
swechencheng:fix-get-order

Conversation

@swechencheng
Copy link
Copy Markdown
Contributor

This commit aims to fix the old API/URL, which gives you 400 response.

@Unt3r
Copy link
Copy Markdown
Contributor

Unt3r commented Nov 17, 2025

It works-very good!
I have not been able to find it by using the inspect function in the browser.
Can you elighten me how you found it?

@swechencheng
Copy link
Copy Markdown
Contributor Author

It works-very good! I have not been able to find it by using the inspect function in the browser. Can you elighten me how you found it?

Thanks!
Sure, in the browser, I monitor all network traffic, and randomly click around different buy/sell/edit buttons.

In the beginning, I used #142 to check SSE events such as push orders. However, it seems to be still immature and under development inside Avanza. Same to deals SSE and stoploss SSE.

Then I go back to normal requests. Luckily, this new get-order endpoint attracted my eyeballs when I clicked edit order.

@Qluxzz
Copy link
Copy Markdown
Owner

Qluxzz commented Nov 26, 2025

LGTM, thanks for contributing!

@Qluxzz Qluxzz merged commit fb8f328 into Qluxzz:master Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants