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::Bitcoin::Feed::Site::BitStamp -- the class that connect and fetch the bitcoin price data from site bitstamp

SYNOPSIS

    use Finance::Bitcoin::Feed::Site::BitStamp;
    use AnyEvent;

    my $obj = Finance::Bitcoin::Feed::Site::BitStamp->new();
    # listen on the event 'output' to get the adata
    $obj->on('output', sub { shift; say @_ });
    $obj->go();

    # dont forget this 
    AnyEvent->condvar->recv;

DESCRIPTION

Connect to site BitStamp by protocol Pusher and fetch the bitcoin price data.

EVENTS

This class inherits all events from Finance::Bitcoin::Feed::Site. The most important event is 'output'.

output

It will be emit by its parent class when print out the data. You can listen on this event to get the output.

SEE ALSO

Finance::Bitcoin::Feed::Site

Finance::BitStamp::Socket

bitstamp

AUTHOR

Chylli <chylli@binary.com>