NAME

Finance::Bitcoin::Feed::Site::Lakebtc -- the class that connect and fetch the bitcoin price data from site lakebtc

SYNOPSIS

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

my $obj = Finance::Bitcoin::Feed::Site::Lakebtc->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 socket.io v2.2.2 and fetch the bitcoin price data.

EVENTS

This class inherits all events from Finance::Bitcoin::Feed::Site and add some new ones. 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.

subscribe

It will subscribe channel from the source site. You can subscribe more channels in the method "configure"

SEE ALSO

Finance::Bitcoin::Feed::Site

lakebtc api

Mojo::UserAgent

BUGS

This module doesn't print the timestamp because the data source no timestamp.

AUTHOR

Chylli <chylli@binary.com>