dcop

Get Real Time Stock Quotes

4 posts in this topic

If FileExists("C:\Temp\") Then
    Real()
Else
    DirCreate("C:\Temp\")
    Real()
EndIf
Func Real()
InetGet ( "http://finance.yahoo.com/q/ecn?s=orcl", "c:\temp\quote.txt", 1)
$fil = FileRead("C:\Temp\quote.txt", 100000)
$sear = StringInStr ( $fil, "last trade")
$par = StringMid ( $fil, $sear, 60)
$par2 = StringMid($par, 48, 5)
MsgBox(0, "", $par2)
FileDelete ( "C:\Temp\quote.txt" )
EndFunc
Exit

This goes to Yahoo Finance real time quotes and returns the current quote. You could make one for each stock you watch or variable the stock symbol into an input box. This one does Oracle's Price

1 person likes this

Share this post


Link to post
Share on other sites



Hi dcop,

Thanks for the code. I will try it out and get back.

cheers

olmanR

Share this post


Link to post
Share on other sites

... might be dcop isn't seeing this as the post is around 10 years old and the OP hasn't been around since 2010. ;)

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Yeah, pretty old post.But I thank him for the code any way......

olmanR

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now