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 6566397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:12:44+00:00 2026-05-25T14:12:44+00:00

Currently, I can get stock quote by returning xml and json using YQL console

  • 0

Currently, I can get stock quote by returning xml and json using YQL console like

select symbol, price from csv where url=’http://download.finance.yahoo.com/d/quotes.csv?s=IBM,YHOO,GOOG,MSFT&f=sl1d1t1c1ohgv&e=.csv’ and columns=’symbol,price,date,time,change,col1,high,low,col2′

I would like to get the complete component list from

http://download.finance.yahoo.com/d/quotes.csv?s=@^HSI&f=sl1d1t1c1ohgv&e=.csv

using YQL console, so I input the statement below in YQL console

select symbol, price from csv where url=’http://download.finance.yahoo.com/d/quotes.csv?s=@^HSI&f=sl1d1t1c1ohgv&e=.csv’ and columns=’symbol,price,date,time,change,col1,high,low,col2′

but it said my link is invalid. Any thoughts and alterative solutions?

  • 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-05-25T14:12:45+00:00Added an answer on May 25, 2026 at 2:12 pm

    Your query was very nearly correct, but the URL was considered “invalid” as you noted. The solution is to properly escape the query string values.

    http://download.finance.yahoo.com/d/quotes.csv?s=@^HSI&f=sl1d1t1c1ohgv&e=.csv
    

    becomes

    http://download.finance.yahoo.com/d/quotes.csv?s=%40%5EHSI&f=sl1d1t1c1ohgv&e=.csv
    

    Changing just those two characters into their %-encoded values allows YQL to pull back the CSV data.

    select * from csv where url='http://download.finance.yahoo.com/d/quotes.csv?s=%40%5EHSI&f=sl1d1t1c1ohgv&e=.csv'
    

    Aside: YQL doesn’t like that the CSV has an empty line at the end of the file, this will cause issues when you try to use the columns where clause. If you’re okay with having the columns called col<number> and want to skip the last (empty) row then use and col8 is not null at the end of your query.

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

Sidebar

Related Questions

I currently use a DataTable to get results from a database which I can
I did select the executable correctly, because I can get it to respond to
I have a getStockQuote() function that will get a current stock quote for a
How can I get the value (string) of the current selection in a combobox?
I can correctly setup up a windows hook, but I get confused by the
How can I check the umask of a program which is currently running? [update:
How can I send keyboard input messages to either the currently selected window or
I currently have a site where different users can login, and depending on their
How can I access Class object for Generics? Currently, I am doing it this
How can I go about generating a Friendly URL in C#? Currently I simple

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.