Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: How to get and save current stock quotes ??


Message #1 by "Vikas Sethi" <learn@v...> on Sun, 26 Aug 2001 13:00:45
How to get and save current stock quotes ??



Hi,

I want to create an application in VB or ASP wherein, I can get the 

current quotes of stocks

prevailing in a particular stock market (National Stock Exchange of India 

[NSE] to be precise).



Also I would like to retrieve the closing rates of respective shares and 

then store it in my 

database.



I dont have any clue about the technique which works behind it.



Can somebody tell me how to do it ??



Thanks.

Message #2 by "Hunuman" <hunuman@f...> on Sun, 26 Aug 2001 23:34:32 +0100
Vikas,



There are two ways to approach this.



1. The Legal Way:  Approach National Stock Exchange of India or some other

data providor such as Reuters, and ask for access to a web API/service, if

they have any. If they dont, you could write it for them, the coding is

trivial.



2.The Illegal Way - (Please Note: I do NOT recommend that you do this)

Simply retrieve the HTML containing the quotes your interested in. Parse it

to locate the data.

But doing this would leave you open to legal action.



Also note that most quotations freely available on the web are delayed.



Hope this helps



Tim M



+++++

If objToErr Is objHuman Then Set objForgive = New objDivine







Message #3 by "Vikas Sethi" <learn@v...> on Mon, 27 Aug 2001 12:01:10
Thanks a lot...At least I have a clue of what the whole technique is all 

about....

Can you tell me as to how do we get the HTML code and parse the quotes 

from there ??

Message #4 by "Vikas Sethi" <learn@v...> on Mon, 27 Aug 2001 12:03:16
Thanks a lot...At least I have a clue of what the whole technique is all 

about....

Can you tell me as to how do we get the HTML code and parse the quotes 

from there ??



Like I know the URL's of some sites which return me an ASP page with the 

rates of the stock I mention in the textbox. All I want is that when the 

page is returned my software can automatically take out that rate from 

that HTML page and store in the database.



Thanks.

Message #5 by "Hunuman" <hunuman@f...> on Mon, 27 Aug 2001 20:07:05 +0100
Vikas,



Unfortunately I cant assist you further with this, since it is illegal, as I

clearly stated in my original reply to your question..



Tim M



+++++

If objToErr Is objHuman Then Set objForgive = New objDivine







----- Original Message -----

From: "Vikas Sethi" <learn@v...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Monday, August 27, 2001 12:01 PM

Subject: [asp_web_howto] Re: How to get and save current stock quotes ??





> Thanks a lot...At least I have a clue of what the whole technique is all

> about....

> Can you tell me as to how do we get the HTML code and parse the quotes

> from there ??


  Return to Index