Closed cyzelman closed 3 years ago
Dude, you're getting stuck on trivial non-problems.
A) DE000KE04K89 is not available on Degiro, which you could've figured out yourself by a simple search in 5 seconds.
B) For any product that is available on Degiro, you can use search_products
, providing the ISIN, and you'll get the product ID (among other things).
from degiroapi.product import Product
products = [Product(p) for p in degiro.search_products("DE000VL97TB2")]
for p in products:
print(f"{p.id=}, {p.isin=}, {p.name=}")
Output:
p.id='14540292', p.isin='DE000VL97TB2', p.name='AHOLD SL 17.13 HB 3.12 FN 17.13 R 1.00 Vontobel BEST Turbo Long'
Thanks!
I will use your code to get the product ID.
Fast response btw!
Gr, Chris
From: Jakub Loucký @.> Sent: vrijdag 2 juli 2021 09:38 To: lolokraus/DegiroAPI @.> Cc: cyzelman @.>; Author @.> Subject: Re: [lolokraus/DegiroAPI] How to get product ID from ISIN? (#40)
Dude, you're getting stuck on trivial non-problems.
A) DE000KE04K89 is not available on Degiro, which you could've figured out yourself by a simple search in 5 seconds.
B) For any product that is available on Degiro, you can use search_products, providing the ISIN, and you'll get the product ID (among other things).
from degiroapi.product import Product
products = [Product(p) for p in degiro.search_products("DE000VL97TB2")] for p in products: print(f"{p.id=}, {p.isin=}, {p.name=}")
Output:
p.id='14540292', p.isin='DE000VL97TB2', p.name='AHOLD SL 17.13 HB 3.12 FN 17.13 R 1.00 Vontobel BEST Turbo Long'
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lolokraus/DegiroAPI/issues/40#issuecomment-872788777 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ATNFCDEVZYPWS4EPTNGXTA3TVVUG5ANCNFSM47WCBECA . https://github.com/notifications/beacon/ATNFCDHOILUMAW5EKBNDLJLTVVUG5A5CNFSM47WCBECKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGQC3GKI.gif
closed
I'm trading most of the time only turbos, so it doesnt have a name only ISIN.
How to get product ID from an ISIN?
for example what is the product ID of DE000KE04K89 ?
Now I just create fake order and get the order list with python then I can see the product ID. But there should be a smarter way.
Please help, it means a lot to me.