Showing results for 
Search instead for 
Did you mean: 
Helper III
Helper III

Intraday ETF prices in Power BI

I've asked the question before, but I was unclear.


I would like to download intraday prices for the ETF 'SPY'.  The interval can be up to two hours.   Can anyone tell me if there is a visual or R script to accomplish this?


Thanks for the advice.



Helper III
Helper III

I have been able to retrieve current intraday pricing in an R script

current = quantmod::getQuote('SPY')

when I look at the 'current' table it returns all the information that I need except that the Trade Time shows as a large integer number ( in this case 1545851547).  The trade time for this time when I run it in RStudio returns "12/26/2018 14:26"

Is there a conversion factor that I am missing?


Trade Time           Last      Change       % Change     Open      High       Low        Volume


That looks like an epoch time to me (# of seconds since January 1, 1970).


Check out this thread for converting to a something more readable:

Helpful resources

May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through June10th!

Power BI Dev Camp Session 22 without aka link and time 768x460.jpg

Check it Out!

Watch Session 22 Ted's Dev Camp along with past sessions!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!

Top Kudoed Authors