UpdateOption.PORTFOLIO / missing products names , and issue in PL
thanks for your job , first of all ! im trying somethign basic to donwlaod my portfolio .
UpdateRequest( option=UpdateOption.PORTFOLIO, last_updated=0, ),
did a little biot of formatting
positions = [] for position in account_update["portfolio"].get("value", []): # Ensure 'value' exists if "value" in position: # Check if 'value' key exists inside each position position_data = {item["name"]: item["value"] for item in position["value"] if item["name"] in ["id", "price","size", "value","plBase"]} positions.append(position_data)
but i cannot get the products names just an ID , and PL value is very wrong .. API says {'EUR': -XXXXX.XXXX} vs website +X.XXX,XX
thanks !
Hello there,
PRODUCTS NAMES
This function doesn't return the products names, just their ids.
One solution to get products names from their ids, is to use the get_products_info function like this:
product_info = trading_api.get_products_info(
product_list=[96008, 1153605, 5462588],
raw=False,
)
PL VALUE No clue why you don't have the same PL.
I hope that helps,
Thanks
thanks Chavithra .. product_info worls . its not exactly updated as live app , same as portfolio VALUeE . is there any delay in data refresh ? still , VALUE delta is not that big i can live with that . o the other hand PL is VERY different . any other user got this issue ?
thanks, Fabio
On Mon, Mar 10, 2025 at 3:20 PM Chavithra @.***> wrote:
Hello there,
PRODUCTS NAMES This function doesn't return the products names, just their ids. One solution to get products names from their ids, is to use the get_products_info function like this:
product_info = trading_api.get_products_info( product_list=[96008, 1153605, 5462588], raw=False, )
PL VALUE No clue why you don't have the same PL.
I hope that helps,
Thanks
— Reply to this email directly, view it on GitHub https://github.com/Chavithra/degiro-connector/issues/166#issuecomment-2710767446, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADV3E6HSCRIVMKGEYMX4D4T2TWNSZAVCNFSM6AAAAABX67AX46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMJQG43DONBUGY . You are receiving this because you authored the thread.Message ID: @.***> [image: Chavithra]Chavithra left a comment (Chavithra/degiro-connector#166) https://github.com/Chavithra/degiro-connector/issues/166#issuecomment-2710767446
Hello there,
PRODUCTS NAMES This function doesn't return the products names, just their ids. One solution to get products names from their ids, is to use the get_products_info function like this:
product_info = trading_api.get_products_info( product_list=[96008, 1153605, 5462588], raw=False, )
PL VALUE No clue why you don't have the same PL.
I hope that helps,
Thanks
— Reply to this email directly, view it on GitHub https://github.com/Chavithra/degiro-connector/issues/166#issuecomment-2710767446, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADV3E6HSCRIVMKGEYMX4D4T2TWNSZAVCNFSM6AAAAABX67AX46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMJQG43DONBUGY . You are receiving this because you authored the thread.Message ID: @.***>