Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8807659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:25:20+00:00 2026-06-14T02:25:20+00:00

I am not able to get OHLCV data from yahoo for current day using

  • 0

I am not able to get OHLCV data from yahoo for current day using Quantmod getSymbols() call. The data exists on yahoo and can also see today’s OHLCV data in my charting platform. As workaround I got today’s EOD quote from yahoo using getQuote(..) call. But when I tried to append this to the downloaded symbol data via rbind, the data object gets populated with NULLs.

I appreciate any suggestions on either how to append the today’s quote to the downloaded historic symbol data or any R API’s I can call after market hours to get symbol EOD (OHLCV data) including for today. Thanks.

library(quantmod)
library(blotter) 
library(PerformanceAnalytics)

getSymbols("SPY")
spy.quote = getQuote("SPY", what = yahooQuote.EOD)

> tail(SPY, n=3)
           SPY.Open SPY.High SPY.Low SPY.Close SPY.Volume SPY.Adjusted
2012-10-25   142.02   142.28  140.57    141.43  134457400       141.43
2012-10-26   141.30   141.84  140.39    141.35  146023500       141.35
2012-10-31   141.85   142.03  140.68    141.35  103341300       141.35

> spy.quote
             Trade Time   Open   High    Low  Close    Volume
SPY 2012-11-01 04:00:00 141.65 143.01 141.52 142.83 100990760

> SPY = rbind(SPY, spy.quote)
> tail(SPY, n=3)
          SPY.Open SPY.High SPY.Low SPY.Close SPY.Volume SPY.Adjusted
          NULL     NULL     NULL    NULL      NULL       NULL               
          NULL     NULL     NULL    NULL      NULL       NULL        
spy.quote NULL     NULL     NULL    NULL      NULL       NULL  
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T02:25:22+00:00Added an answer on June 14, 2026 at 2:25 am

    You need to convert the quote data from a data.frame to an xts object and add a column for Adjusted price. Then you can rbind.

    getSymbols("SPY", src='yahoo', to='2012-10-31')
    spy.quote = getQuote("SPY", what = yahooQuote.EOD)
    
    # convert to xts
    xts.quote <- xts(spy.quote[, -1], as.Date(spy.quote[, 1])) # use Date for indexClass
    xts.quote$Adjusted <- xts.quote[, 'Close'] # add an Adjusted column
    
    tail(rbind(SPY, xts.quote), 3)
               SPY.Open SPY.High SPY.Low SPY.Close SPY.Volume SPY.Adjusted
    2012-10-26   141.30   141.84  140.39    141.35  146023500       141.35
    2012-10-31   141.85   142.03  140.68    141.35  103341300       141.35
    2012-11-01   141.65   143.01  141.52    142.83  100995568       142.83
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not able to get the current physical path within Application_Start using HttpContext.Current.Request.PhysicalApplicationPath because
Hi i am using data table in asp.net. I am not able to get
not able to get this, can someone help for this LINQ query? select col1,
Could you please explain why im not able to get values of backreferences from
I’m using the following flags, but still I m not able to get this
I'm not able to get html from a very simple XML file as below.
i am not able to get user avtar image of say gmail account, using
I'm stuck on why I am not able to get a value returned from
i read this command from cocoadev.com but was not able to get it plz
I was trying this from some time, but I am not able to get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.