lolokraus / DegiroAPI

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

degiro.orders - 404 error #53

Open thomasf1 opened 2 years ago

thomasf1 commented 2 years ago

A piece of code that used to work seems to have broken. Maybe it´s just a tempoary issue with the API though.

python orders = degiro.orders(datetime.now() - timedelta(days=10), datetime.now())

Gets the following:

Could not get orders. Response: html <!doctype html><html lang="en"><head><title>HTTP Status 404 – Not Found</title><style type="text/css">H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}</style></head><body><h1>HTTP Status 404 – Not Found</h1></body></html>

Does anyone else get that, too?

Unrelated: After sending off orders, I´m trying to confirm when orders are executed, but find it quite cumbersome, polling the transactions. Has anyone a good solution?