-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Real time price #6
Comments
Im not sure but when you ask for your positions, you can get the prices.
El sáb., 6 jun. 2020 12:38, jaspspain <[email protected]> escribió:
… Hi folks, can you tell me how can i get the real time price of one
product, for example APPLE?
I only can see the closing price.
Thank you
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACS4CSSZ7KDNYN4FHM4MQ6DRVIMBXANCNFSM4NV3IWUA>
.
|
Thanks for your fast answer :) |
Yes, I have the same problem. This is just a workaround. Lets hope
lolokraus can make it. Regards :)
El sáb., 6 jun. 2020 13:46, jaspspain <[email protected]> escribió:
… Thanks for your fast answer :)
I really want to know the actual prices from products that aren't in my
portfolio.
i want to know the actual price from APPLE for example but i dont have any
open positions.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACS4CSUMEX2JZGG3R6MX5ZTRVIUBHANCNFSM4NV3IWUA>
.
|
Yesterday I tried to get the real time price without success. Lolokraus, could it be possible to get this data? It's very important to program any automatic trading system using this API. |
Buenas bricomatica, veo que eres español también. Si descubres como hacerlo, agradecería que me lo dijeras ;) Un Saludo! |
|
@lolokraus Want your opinion on this before I see if I can do this. I don't see a degiro.nl endpoint that returns the real time price. The product_info function returns a "vwdIdSecondary" ID which can be used to fetch a https://charting.vwdservices.com/hchart/v1/deGiro/data.js? endpoint which contains a "lastPrice" key. Question is, do you want to have a reliance on a non-DeGiro URL? |
Getting the real time data for products would be a huge improvement to this API and I tried to implement it already, but as @SilageTime already correctly pointed out, there seems to be no endpoint from degiro that returns the real time product data. But I think if we get it to work through https://charting.vwdservices.com/hchart/v1/deGiro/data.js? it would be an equally good solution! As a second solution, I have seen many repositories getting real time data though https://finance.yahoo.com/. Such as https://github.com/ranaroussi/yfinance or https://github.com/JECSand/yahoofinancials. |
I have added a function to get real time data and historical data for a product. But I don't want to close this issue yet because I have run into some problems while testing, where the real time data of this API was lacking behind the data shown on the website, without any reason. So if you also experience such problems report them to me and any help in fixing them is appreciated! |
@lolokraus do you know this implementation here - this seems rather complete (have not used it though): if you look in the file DeGiroImpl.java there is: |
@lolokraus I am trying to get the real time data via your example program but I got the following error: |
What sourcery is Degiro using for real time data?? I can only see the traffic using low level network capturing tools, but nothing in Chrome or Mozzila dev tools. I thought I knew how web works :) |
@lolokraus ; I tried to us the realtime price feature (which would be a great improvement on this very nice API), but it does not seem to work. I am getting the following error: AttributeError: 'DeGiro' object has no attribute 'real_time_price' |
Dear @lolokraus , i'm having some issue with realtime prices of products that have the parameter 'vwdId' as a string and not like a int, an example is CME MES future: For this type of product no ['vwdIdSecondary'] is available. therefore at line 224 of init.py and then at line 226 an error is issued. Ty for your efforts |
After looking for a while, to get the real-time price of a stock, I don't look at what the js returns (which is not part of degiro in effect) but I look at what the index returns to him. even, it is formed strangely but we see that it returns the graph. I grant you there is a slight delay, but for my stratum which consists in gradually increasing the stop loss it passes ... I hope help you .... |
@lolokraus I think this is due to the following: An initial data request is retrieved which contains indeed the 'lastPrice' field, but they also start a service worker which updates prices. It can be seen if (if you use Chrome) using However, I am not sure if it will be very stable to build upon, as it depends on this url: |
I've read all Degiro terms and conditions and it's explicitely told that Vwd guaranties realtime data for degiro application and client is aware of it. Theirs Infront structure is quite robust and it can definitely be relied on. |
This issue seems to have appeared in the last day also. This is the stacktrace
|
Hi folks, can you tell me how can i get the real time price of one product, for example APPLE?
I only can see the closing price.
Thank you
The text was updated successfully, but these errors were encountered: