Skip to content

TopLoosers

TopLoosers provides a list of (valid at the moment) worst performers. Data is compiled by the data provider of your choice.

TopLoosers.update

Refreshes the list of the current top performers. eshes the list of the current top performers.

• parameters

NONE

• return value:

NONE

TopLoosers.all

Returns a list of the most recently updated worst performers. The list should be refreshed with a call to TopGainers.update(), otherwise it may be outdated. If the top gainers/loosers feature is not supported by your data provider, an empty list will be returned.

• parameters

NONE

• return value:

Result Return value
on success iterable list symbols of worst performers
on error an empty list
# collect most recent top performers with price in less than $10
TopLoosers.update();
list = TopLoosers.all();
for looser in list:
    if looser.currentPrice < 10.0:
        Positions.add(looser.symbol)
TopLoosers.update();
var list = TopLoosers.all();
list.forEach(function(gainer) {
    if (gainer.currentPrice < 10.0) {
        Positions.add(gainer.symbol);
    }
});