An Analysis of Option Pricing Models
Charles Vu
2002-2003
Ticker |
Last Trade |
Change |
Volume |
");
for ($x=0;$x" && !feof($datei))
{}
$name2 = $name2." ";
}
$name2 = $name2.$name;
}
}
$pos = strstr($name2, "Volume");
//print("$pos");
// MSFT 1:56pm 55.42 -0.43 -0.77% 26,177,812
preg_match("/Volume\s+(.+?)\s+(.+?)\s+(.+?)\s+(.+?)\s+(.+?)\s+(.+?)\s+(.+?)/", $pos, $matches);
print("");
print (" $matches[1] | ");
print (" $matches[2] | ");
print (" $matches[3] | ");
if (preg_match("/\+/", $matches[4]))
print(" $matches[4] | ");
else if (preg_match("/\-/", $matches[4]))
print(" $matches[4] | ");
else print(" $matches[4] | ");
if (preg_match("/\+/", $matches[5]))
print (" $matches[5] | ");
else if (preg_match("/\-/", $matches[5]))
print (" $matches[5] | ");
else print(" $matches[5] | ");
print (" $matches[6] |
");
}
print "";
?>
Quotes delayed 15 minutes for NYSE stocks; 20 minutes for NASDAQ stocks.
Stock data provided by Yahoo! Finance