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

  • SEARCH
  • Home
  • 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 8259629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:54:37+00:00 2026-06-08T02:54:37+00:00

I expected the FinanceApp.getHistoricalStockInfo function to return all the fields populated, as well as

  • 0

I expected the FinanceApp.getHistoricalStockInfo function to return all the fields populated, as well as the historical data for the date range I requested.

But in the following example I only get the stockInfo array filled and all the rest of the fields are blank!?

function finTest() {
  var a = FinanceApp.getStockInfo("TSE:MKP");
  var b = FinanceApp.getHistoricalStockInfo("TSE:MKP", new Date(2012, 5, 29), new Date(2012, 5, 30), 1);
  Logger.log("name = " + a.name + " has_stock_data = " + a.has_stock_data);
  Logger.log("name = " + b.name + " has_stock_data = " + b.has_stock_data + " stockInfo = " + b.stockInfo.length);
  for (var i=0; i<b.stockInfo.length; i++)
    Logger.log("Time = " + b.stockInfo[i].time + " close = " + b.stockInfo[i].close);
}

The result of this is:

name = MCAN Mortgage Corporation has_stock_data = true
name = has_stock_data = undefined stockInfo = 1
Time = Fri Jun 29 2012 16:00:00 GMT-0400 (EDT) close = 14.1

Is this normal? It’s not what I expected. I’ve tried with a variety of symbols (mostly Canadian but a couple US ones too) and this is always what I get.

Still, not what I expected. So, is this normal?

  • 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-08T02:54:38+00:00Added an answer on June 8, 2026 at 2:54 am

    It seems that only some of the generic fields are returned when using getHistoricalStockInfo(). This should be better documented, and you can file a bug for that on the issue tracker.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

as expected it invokes the function foo the first time, but when i want
I expected objectAtIndex: to return a retained and autoreleased object for my use, but
this works as expected [97,98].map(function(x){String.fromCharCode(x)}) // [ 'a', 'b' ] but the output is
I expected this to print [b] but it prints [] : $x = abc;
Getting Expected ',' or '{' but found '#44559' error. My code looks like this:
I expected the code below to alert 0 and 1, but it alert 2
I expected that there is no something wrong but VS2010 gives error. string s=
I expected the following to work but it doesn't seem to. <?php class Patterns
I expected Biztalk to have a default Exchange adapter but it doesn't. Then I
I expected this to be simple, but I'm getting some strange results. I'd appreciate

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.