|
Finance::SE::OMX - Getting stock information from the swedish stock exchange |
Finance::SE::OMX - Getting stock information from the swedish stock exchange
use Finance::SE::OMX;
Finance::SE::OMX provides a simple interface for retrieving stock information from the swedish stock exchange. It uses LWP::Simple for the communication with the searchform.
new()get_data_short(``STOCK_SHORTNAME'')If no stock where found, it returns undef.
get_stocklist(0-5)
0 - A-listan samtliga
1 - A-listan mest omsatta
2 - A-listan övriga
3 - O-listan samtliga
4 - O-listan Attract40
5 - O-listan övriga
The arrays in the array is shaped like the one that gets returned by get_data_short(), since they both use the same function for retrieving the data.
It dies if it can't succeed.
$stock = Finance::SE::OMX->new;
@bol = $stock->get_data_short(``BOL'');
print ``$bol[0]\t\t$bol[5]\t\t$bol[10]\n'';
If you find any bugs, please notify me somehow and I'll fix it. If OMX changes their website, then this module may need a serious update.
Sebastian Cato
Copyright (c) 2006, Sebastian Cato. All Rights Reserved.
This program is free software. You may copy and/or redistribute it under the same terms as Perl itself.
|
Finance::SE::OMX - Getting stock information from the swedish stock exchange |