degiro-connector
degiro-connector copied to clipboard
error 429 when sending 2 order commands within less than 1 second
Hello, Probably not a bug but rather a limit from the server side. Do you see the same behaviour? Any workaround? Thanks.
Hello there,
is it possible to share the full error log ?
Without your credentials of course.
I think Degiro is doing some check with this order creation.
So I wouldn’t play too much with fast ordering.
It’s safer to put some random number of seconds between your orders.
I've detected this behaviour too. DeGiro throws HTTP 429 (Too Many Requests) when sending consecutive Order requests within 0.75 s. So please ensure to create some delay or advanced queue scheduler.
When we have completed #54 , it will be possible to return this status code and make a retry after 1.0 s.
Maybe good to create a list of all error numbers. Don't remember the numbers, but I saw error numbers for
- not enough free space for a buy order
- not enough long position for a sell order
- sending order with wrong ticksize (say, €200,01 when it has to be a multiple of €0.10)
- time-out error (using too many delays, so it timed out)
Just met error 502, but don't know what it means.
I share your desire to have a proper fault list. And moreover the root cause and solutions for them. We can do this better once #54 is completed, as we then better can analyse the HTTP status codes and fault messages (horrible that DeGiro sends them as localised strings).
I'm happy then to add a specific chapter on Fault Handling to the docu.