| 1 | package WebService::Coincheck::Account; | ||
| 2 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use Class::Accessor::Lite ( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ro => [qw/ | |
| 6 | client | ||
| 7 | /], | ||
| 8 | 2 | ); | |
| 9 | |||
| 10 | 1 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 11 | 1 | my $class = shift; | |
| 12 | 1 | my $client = shift; | |
| 13 | |||
| 14 | 1 | bless { | |
| 15 | client => $client, | ||
| 16 | }, $class; | ||
| 17 | } | ||
| 18 | |||
| 19 | 0 | ▶ | sub balance { |
|
Subroutine
balance: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 20 | 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 | 0 | ▶ | sub leverage_balance { |
|
Subroutine
leverage_balance: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 33 | 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 | 0 | ▶ | sub info { |
|
Subroutine
info: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 46 | 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 | 2 | 1; | |