line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::Coincheck::Account; |
2
|
2
|
|
|
2
|
|
1381015
|
use strict; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
90
|
|
3
|
2
|
|
|
2
|
|
19
|
use warnings; |
|
2
|
|
|
|
|
10
|
|
|
2
|
|
|
|
|
139
|
|
4
|
|
|
|
|
|
|
use Class::Accessor::Lite ( |
5
|
2
|
|
|
|
|
13
|
ro => [qw/ |
6
|
|
|
|
|
|
|
client |
7
|
|
|
|
|
|
|
/], |
8
|
2
|
|
|
2
|
|
684
|
); |
|
2
|
|
|
|
|
1142
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new { |
11
|
1
|
|
|
1
|
0
|
33
|
my $class = shift; |
12
|
1
|
|
|
|
|
3
|
my $client = shift; |
13
|
|
|
|
|
|
|
|
14
|
1
|
|
|
|
|
6
|
bless { |
15
|
|
|
|
|
|
|
client => $client, |
16
|
|
|
|
|
|
|
}, $class; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub balance { |
20
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
|
|
|
my $req_params; |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
my $res = $self->client->request( |
25
|
|
|
|
|
|
|
'GET' => 'api/accounts/balance', |
26
|
|
|
|
|
|
|
$req_params, |
27
|
|
|
|
|
|
|
); |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
return $res; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub leverage_balance { |
33
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
34
|
|
|
|
|
|
|
|
35
|
0
|
|
|
|
|
|
my $req_params; |
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
|
|
|
my $res = $self->client->request( |
38
|
|
|
|
|
|
|
'GET' => 'api/accounts/leverage_balance', |
39
|
|
|
|
|
|
|
$req_params, |
40
|
|
|
|
|
|
|
); |
41
|
|
|
|
|
|
|
|
42
|
0
|
|
|
|
|
|
return $res; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub info { |
46
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
47
|
|
|
|
|
|
|
|
48
|
0
|
|
|
|
|
|
my $req_params; |
49
|
|
|
|
|
|
|
|
50
|
0
|
|
|
|
|
|
my $res = $self->client->request( |
51
|
|
|
|
|
|
|
'GET' => 'api/accounts', |
52
|
|
|
|
|
|
|
$req_params, |
53
|
|
|
|
|
|
|
); |
54
|
|
|
|
|
|
|
|
55
|
0
|
|
|
|
|
|
return $res; |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
1; |