degiro-connector icon indicating copy to clipboard operation
degiro-connector copied to clipboard

get_company_profile stops working

Open AureliusMarcusHu opened this issue 1 year ago • 1 comments

@Chavithra , Last week this python code worked fine. This week the code has stopped working. deGiro must have change something.

def comp_prof(trapi, dft):
    isin = dft.get('isin', '-')
    if bln(isin):
        resp = None
        cnt = 0
        while resp is None:
            if cnt > 0:
                sleep(0.59)
            resp = trapi.get_company_profile(product_isin=isin, raw=True, )
            cnt += 1
            if cnt > 3:
                log_notes('degiro ; connection ; exception')
                resp = {}
                break
    return resp

The code above trow following error:

404 Client Error:  for url: https://trader.degiro.nl/dgtbxdsservice/company-profile/v2/DE000ZAL1111?intAccount=*******&sessionId=0C8DCF0242BB6FC481E74C785D3D713B.prod_dcv_ch66_1

{"errors":[{"text":"No corresponding resource found"}]}

AureliusMarcusHu avatar Mar 07 '25 21:03 AureliusMarcusHu

Hello there,

PR #167 should have solved this issue.

Thanks

Chavithra avatar Mar 10 '25 12:03 Chavithra