stockgrabber

Discussion in 'Programming' started by soldm8, Jul 26, 2007.

  1. #1
    hello

    can you build me a real time stock quote grabber for prices from international markets?

    i need something that will auto update and provide real time quotes and if possible charts.

    can it be done, pm me if you can do it i'll be happy to provide more info
     
    soldm8, Jul 26, 2007 IP
  2. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #2
    You can code it in php or perl but you need to post it in buy and sell->service->programming
     
    it career, Jul 26, 2007 IP
  3. tbe

    tbe Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Dude, I'm sure you can download something like this? Have you looked around the net?
     
    tbe, Jul 26, 2007 IP
  4. Sygon

    Sygon Peon

    Messages:
    439
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you aware of PHP and AJAX you could use the following function:

    
    
    function get_string_between($string, $start, $end)
    
    {
    
    $string = " ".$string;
    $ini = strpos($string,$start);
    
    if($ini == 0)
    
    return "";
    $ini += strlen($start);
    $len = strpos($string,$end,$ini) - $ini;
    return substr($string,$ini,$len);
    
    }
    
    $stockmarketsite = file_get_contents("http://stockmarket.com");
    
    get_string_between($stockmarketsite,"<div id='startoffigures'>","</div>");
    
    
    
    
    PHP:
    of course youd have to edit the get_string_between to the right details but hopefully youll get the idea
    And use ajax to update it every so often and include that page :)
     
    Sygon, Jul 26, 2007 IP
  5. soldm8

    soldm8 Guest

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thanks for the feedback guys -
     
    soldm8, Jul 26, 2007 IP