pcmind / degiro-java-client

Unofficial DeGiro broker java client
Apache License 2.0
6 stars 3 forks source link

QuoteCastUrl has changed #4

Closed guspav closed 3 years ago

guspav commented 3 years ago

Hi,

The quote cast url has changed by Degiro from "https://degiro.quotecast.vwdservices.com/CORS/" to "https://trader.degiro.nl/vwd-quotecast-service/" as result the function newVwdSession() does not work anymore. It returns "404 - File or directory not found. The resource you are looking for might have been removed, had his name changed, or is temporary unavailable." Regards

pcmind commented 3 years ago

Thank you for reporting. Yes the URL has changed but the workflow to get VwdSession has also changed; so we'll need to investigate API changes. You can verify this with a modified instance of DeGiroHost.

Chavithra commented 3 years ago

Hello there,

I have both good and a bad news for you.

Good news This endpoint works with the same workflow on my side : https://degiro.quotecast.vwdservices.com/CORS/

Bad news This probably means the bug is in the library or the way the test was made.

Hope that will help

pcmind commented 3 years ago

It seam that you are correct; endpoint is still the one been used, but header validation hare more restrictive and with incorrect header we get Error code 401. I'll fix the issue.

guspav commented 3 years ago

It is still does not work for me... With endpoint "https://trader.degiro.nl/vwd-quotecast-service/" it returns the following html instead of json image

pcmind commented 3 years ago

Strange. I have a Portuguese account and have no problem with current endpoint. The web app is still using the "https://degiro.quotecast.vwdservices.com/CORS/". Did you try to change the endpoint providing the modified URL?

guspav commented 3 years ago

Hi, I've modified my previous post. The error message come with new price update end point. The old one ("https://degiro.quotecast.vwdservices.com/CORS/") finally works for me. My fault. Thanks a lot for your support. How did you back engineered the API? Just looking Degiro site? If, for example, one day they will change version string is there an easy way to discover it value?

pcmind commented 3 years ago

You are welcome. I usually use browser debug console and Filddler2 and them do some trial an error. The full API may change at any time and it is not that evident to detect what changed. Like in this case; not much changed but the server was more restrictive accepted headers.