The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Finance::Alpaca::Struct::Watchlist - A Single Watchlist Object

SYNOPSIS

    use Finance::Alpaca;
    my @watchlists = Finance::Alpaca->new( ... )->watchlists;

DESCRIPTION

The assets API provides CRUD operation for the account’s watchlist. An account can have multiple watchlists and each is uniquely identified by id but can also be addressed by user-defined name. Each watchlist is an ordered list of assets.

Properties

The following properties are contained in the object.

    for my $asset ($watchlist->assets()) {
        say $asset->symbol;
    }
id - Watchlist ID (UUID)
created_at - Timestamp as a Time::Moment object
updated_at - Timestamp as a Time::Moment object
name - User-defined watchlist name (up to 64 characters)
account_id - Account ID (UUID)
assets - The content of this watchlist in the order as registered by the client

LICENSE

Copyright (C) Sanko Robinson.

This library is free software; you can redistribute it and/or modify it under the terms found in the Artistic License 2. Other copyrights, terms, and conditions may apply to data transmitted through this module.

AUTHOR

Sanko Robinson <sanko@cpan.org>