<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -292,3 +292,7 @@
 2000-08-06	Paul Fenwick	&lt;pjf@cpan.org&gt;
 	* Updated regression testing scripts to make sure that spurious
 	  percentage signs are no longer returned.
+
+2000-08-14	Paul Fenwick	&lt;pjf@cpan.org&gt;
+	* Updated chkshares script so that it can deal with any market,
+	  not just the ASX.</diff>
      <filename>ChangeLog</filename>
    </modified>
    <modified>
      <diff>@@ -5,19 +5,16 @@ use Finance::Quote qw/asx/;
 
 =head1 NAME
 
-chkshares.pl - Check ASX share information.
+chkshares.pl - Check share information.
 
 =head1 USAGE
 
-chkshares.pl TLS CML ITE
+chkshares.pl australia TLS CML ITE
 
 =head1 NOTES
 
-Example program.  Demonstrates how to use one of the interfaces to
-Finance::Quote.
-
-In the future this program will be expanded to handle other Finance::Quote
-interfaces (eg, yahoo and yahoo_europe).
+Example program.  Demonstrates how to use one of the interface to
+Finance::Quote.  The first argument must be the market.
 
 =cut
 
@@ -32,17 +29,21 @@ TICKER         DATE      LAST  %CHANGE       HIGH      LOW    VOLUME     CLOSE
 .
 
 format STDOUT =
- @&lt;&lt;&lt;   @&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;  @###.### @###.###   @###.### @###.### @&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;  @###.###
+@&lt;&lt;&lt;&lt;&lt;&lt; @&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;  @###.### @###.###   @###.### @###.### @&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;  @###.###
 $name,  $date,       $last,   $p_change, $high,   $low,    $volume,   $close
 .
 
+my $quoter = Finance::Quote-&gt;new();
+my $market = shift || die &quot;Usage: $0 market stocks\n&quot;;
+
+my %quote = $quoter-&gt;fetch($market,@ARGV);
+
 foreach my $code (@ARGV) {
-	my %quote = asx($code);
 	unless ($quote{$code,&quot;success&quot;}) {
 		warn &quot;Lookup of $code failed - &quot;.$quote{$code,&quot;errormsg&quot;}.&quot;\n&quot;;
 		next;
 	}
-	$name = $quote{$code,'name'};
+	$name = $code;
 	$date = $quote{$code,'date'};
 	$last = $quote{$code,'last'};
 	$p_change = $quote{$code,'p_change'};</diff>
      <filename>Examples/chkshares.pl</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>57d6066ec54c4d423d153ed44c83604025dc4b8a</id>
    </parent>
  </parents>
  <author>
    <name>Paul Fenwick</name>
    <email>pjf@perltraining.com.au</email>
  </author>
  <url>http://github.com/pfenwick/finance-quote/commit/8134bd92ffd25354088069bfc9630d5be35545a7</url>
  <id>8134bd92ffd25354088069bfc9630d5be35545a7</id>
  <committed-date>2000-08-14T00:50:02-07:00</committed-date>
  <authored-date>2000-08-14T00:50:02-07:00</authored-date>
  <message>Updated chkshares script to use any market, not just ASX.</message>
  <tree>785273ee521d70965823a4a647f6bf7bdcd70625</tree>
  <committer>
    <name>Paul Fenwick</name>
    <email>pjf@perltraining.com.au</email>
  </committer>
</commit>
