-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Order only succeeds when logged in once via browser #77
Comments
This can be reproduced regularly on my account, does nobody else have this problem? |
I also have the same issue. Any solution? |
Could it be that you need to "sleep" in between two calls to the api enough time? |
I have it also this morning |
I wait between buy orders for 5 seconds, but it might be necessary to wait between every API call, will try this. The |
@coveritytest I'm glad you brought this up, since I have the same experience. Work-around
When we omit step 3, step 5 will fail with errors. Observations
|
I agree that the login process for the web portal is different from DeGiro's API connect() method. |
I can also support and try to find the bug if @Chavithra you can point me out where do you think this is coming from |
I have the same issue as well.. |
Same issue here. |
Any news about this? |
Nice analysis. Will try to reproduce it this month. Questions :
|
order = Order(
action = Order.Action.BUY,
order_type = Order.OrderType.LIMIT,
price = price,
product_id = product_id,
size = amount,
time_type = Order.TimeType.GOOD_TILL_DAY
)
I hope this helps for your analysis. |
I agree with @funnel20. If I do not perform a login via browser besides degiro connector once a day, sell and buy orders fail. It's difficult to say those are the only actions failing because I only need to delete an order if it exists. I was thinking about the issue and, a dirty solution to temporarily mitigate the problem would be the implementation of a browser login with chrome driver working in parallel to connect() function. It's far from ideal, but It can work (desperate times call for desperate measures) Good day for you guys :) |
Did someone manage to solve this without having to manually log in ? |
Never had the issue actually, using 2fa auth and running the script from a Google cloud function |
Hey, I have the same issue. Any solution/fix? |
Same issue here |
I do have some strange errors when ordering:
Unfortunately there is no more debug output despite I set
level=logging.DEBUG
I just found out that at least the
{"errors":[{"text":"Internal server error"}]}
error is gone, when I login to degiro once via browser. I guess this is a bug. The session is created correctly:
2022-03-14 12:08:17,645 INFO MainThread get_session_id:response_dict: {'isPassCodeEnabled': True, 'locale': 'de_DE', 'redirectUrl': 'https://trader.degiro.nl/trader/', 'sessionId': 'xxxxxxxxx.prod_a_116_4', 'status': 0, 'statusText': 'success'}
Might always happen after a weekend, when I did not login for a long time, but not sure. No, happened this morning again. Always have to login first, until buy order is executed.
The text was updated successfully, but these errors were encountered: