NAME

GT::List - List of symbols (shares)


DESCRIPTION

This package provide some simple functions to work with a list of symbols.

Example

Create an empty GT::List object : my $list = GT::List->new();

Load data from a list of symbol : $list->load("/bourse/listes/us/nasdaq");

Add a symbol in a list : $list->add("GeniusTrader");

Remove a symbol in a list : $list->remove("GeniusTrader");

Save list in a file : $list->save("/bourse/listes/us/nasdaq");

Find how many symbols are in a list : $list->count();

Get symbol number $i : $list->get($i);

Functions

$list->get($i)

Get symbol number $i.

$list->add("symbol")

Add a symbol in a list.

$list->remove($i)

Remove the symbol number $i.

$list->count()

Find how many symbols are in the list.

$list->load("list_of_symbol.txt")

Load data from a list of symbol.

$list->save("list_of_symbol.txt")

Save list in a file.