test.pl: update testcode for morningstarde
This commit is contained in:
parent
85e8f4905b
commit
a56620543e
17
test.pl
17
test.pl
@ -8,16 +8,23 @@ if (@ARGV) {
|
|||||||
@papers = @ARGV;
|
@papers = @ARGV;
|
||||||
} else {
|
} else {
|
||||||
# example values
|
# example values
|
||||||
@papers = ("A0M9A2", "DE0005326565");
|
#@papers = ("A0M9A2", "DE0005326565", '986855');
|
||||||
|
@papers = ('986855', 'LU0055631609', 'F0GBR05V3L');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# DKB
|
||||||
|
#my $q = Finance::Quote->new("DKB");
|
||||||
|
#my %retvals = $q->fetch("dkb",@papers);
|
||||||
|
#my @details = ('name', 'price', 'currency', 'date');
|
||||||
|
|
||||||
my $q = Finance::Quote->new("DKB");
|
# should-be possible
|
||||||
|
|
||||||
my %retvals = $q->fetch("dkb",@papers);
|
|
||||||
#my @details = $q->labels();
|
#my @details = $q->labels();
|
||||||
my @details = ('name', 'price', 'currency', 'date');
|
|
||||||
|
# Morningstarde
|
||||||
|
my $q = Finance::Quote->new("Morningstarde");
|
||||||
|
my %retvals = $q->fetch("morningstarde",@papers);
|
||||||
|
my @details = ('name', 'nav', 'currency', 'date');
|
||||||
|
|
||||||
foreach my $fund (@papers) {
|
foreach my $fund (@papers) {
|
||||||
foreach my $detail (@details) {
|
foreach my $detail (@details) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user