diff options
Diffstat (limited to 'contrib/scripts/getquote')
-rwxr-xr-x | contrib/scripts/getquote | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/contrib/scripts/getquote b/contrib/scripts/getquote deleted file mode 100755 index bed561d6..00000000 --- a/contrib/scripts/getquote +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/perl - -$timeout = 60; - -use Finance::Quote; - -$q = Finance::Quote->new; -$q->timeout($timeout); -$q->require_labels(qw/price/); - -%quotes = $q->fetch("nasdaq", $ARGV[0]); -if ($quotes{$ARGV[0], "price"}) { - print "\$", $quotes{$ARGV[0], "price"}, "\n"; -} else { - exit 1; -} |