erAgent, 1; }
|| die('LWP::UserAgent package not found');
eval { require JSON::XS, 1; }
|| die('JSON::XS package not found');
}
our $VERSION = '0.04';
# singleton and accessor
{
gent->new( keep_alive => 1 );
sub _lwp_agent { return $lwp }
my $json = JSON::XS->new();
sub _json { return $json }
}
sub new {
my ( $class, %options ) = @ARG;
my $object;
$
$options{APIKey} || undef;
$object->{Secret} = $options{Secret} || undef;
$object->{_json} = _json;
$object->{_agent} = _lwp_agent;
return bless $object, $class;
}
sub api_trading {