Finance::Alpaca::TradeStream - A Streaming, Account and Order Updates Object
use Finance::Alpaca; my $stream = Finance::Alpaca->new( ... )->trade_stream( sub ($packet) { ...; } ); Mojo::IOLoop->start unless Mojo::IOLoop->is_running;
Finance::Alpaca::TradeStream receives real-time activity data and passes it on to your callback as Finance::Alpaca::TradeUpdate objects.
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.