avanza icon indicating copy to clipboard operation
avanza copied to clipboard

Has anyone figured out how to get_order with a certificate?

Open exallon72 opened this issue 8 months ago • 3 comments

If am refering to this method.

def get_order(self, account_id: str, order_id: str):

No matter what I try I can't figure out how to get the order status.

Thanks for your help!

exallon72 avatar Apr 24 '25 13:04 exallon72

Endpoint does not work and there is no new that I know of. You can use get_orders() to get status for all orders instead.

Unt3r avatar Apr 27 '25 10:04 Unt3r

From what I can see. The order disappears from the get_orders once completed. So I can't check status if it's completed. Deleted or otherwise. Anyone have any idea how to fix that?

exallon72 avatar May 08 '25 14:05 exallon72

Yes, only active orders are seen with get_orders().

You can call get_deals() to see if it is completed.

Unfortunatly, if it is deleted it's not in any of thoose two calls.

Unt3r avatar May 08 '25 15:05 Unt3r