cexio
(
C/CR/CRYPTOGRA/cexio-0.2.3.tar.gz, CRYPTOGRA, 2014;
MetaCPAN
)
="cexio-perl-module";
my $modver="0.2.3";
use vars qw($VERSION);
$cexio::VERSION = '0.2.3';
use JSON;
use Digest::SHA qw(hmac_sha256_hex);
use Hash::Flatten qw(:all);
use LWP::UserAgent;
my $ua = L
lic functions
sub ticker
{
my ($self, $primary, $secondary) = @_;
return $o->unflatten( $self->_json_get($cexio{urls}{api}{ticker}.$primary."/".$secondary) );
}
sub order_book
{
my ($self, $primar
@_;
if ( defined($depth) ) { $secondary .= "/?depth=${depth}"; }
return $o->unflatten( $self->_json_get($cexio{urls}{api}{order_book}.$primary."/".$secondary) );
}
sub trade_history
{
my ($self,