Finance::Alpaca::Struct::Asset - A Single Account Object
use Finance::Alpaca; Finance::Alpaca->new( ... )->assets;
The assets API serves as the master list of assets available for trade and data consumption from Alpaca. Assets are sorted by asset class, exchange and symbol. Some assets are only available for data consumption via Polygon, and are not tradable with Alpaca. These assets will be marked with the flag tradable=false.
tradable=false
The following properties are contained in the object.
$account->id;
id
class
exchange
AMEX
ARCA
BATS
NYSE
NASDAQ
NYSEARCA
OTC
symbol
status
active
inactive
tradable
marginable
shortable
easy_to_borrow
fractionable
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.
Sanko Robinson <sanko@cpan.org>
To install Finance::Alpaca, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::Alpaca
CPAN shell
perl -MCPAN -e shell install Finance::Alpaca
For more information on module installation, please visit the detailed CPAN module installation guide.