lolokraus / DegiroAPI

An unofficial API for the trading platform Degiro, with the ability to get real time data and historical data
MIT License
215 stars 86 forks source link

delete order is not working properly #39

Closed cyzelman closed 3 years ago

cyzelman commented 3 years ago

I would like to delete any open orders without indicating the order ID. The code is shown in the picture.

Deleting with order ID is working just fine.

But I want to delete all open orders that are made within 24 hours, regardless the order ID. I think the written code should serve this purpose. But it doesnt work.

Please help!

Screenshot 2021-07-01 193652

Jakub-CZ commented 3 years ago

It works for me. Check whether delete_order returns any errors. When the function is successful it should return an empty set {}.

cyzelman commented 3 years ago

i just checked i did not use pip install python-time and also did not import datetime and timedelta

case is close

cyzelman commented 3 years ago

I see what the happened.

You guys did not tell me to install python-time and also to import datetime and timedelta. Below is the only instruction.

I think you should update the dependencies and imports. I’m sure I’m not the only one (no python experience whatsoever) who face this issue.

Thanks.

Gr, Chris

From: Jakub Loucký @.> Sent: donderdag 1 juli 2021 20:21 To: lolokraus/DegiroAPI @.> Cc: cyzelman @.>; Author @.> Subject: Re: [lolokraus/DegiroAPI] delete order is not working properly (#39)

It works for me. Check whether delete_order returns any errors. When the function is successful it should return an empty set {}.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lolokraus/DegiroAPI/issues/39#issuecomment-872456279 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ATNFCDA4EIR2QKLWMAOOIRLTVSWX5ANCNFSM47VFLJMA . https://github.com/notifications/beacon/ATNFCDFIJIORFKCOFPX7KK3TVSWX5A5CNFSM47VFLJMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGQAKAVY.gif