| 1 | package WebService::Coincheck::Trade; | ||
| 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 all { |
|
Subroutine
all: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 20 | 0 | my ($self, %params) = @_; | |
| 21 | |||
| 22 | 0 | my $req_params = { | |
| 23 | pair => 'btc_jpy', | ||
| 24 | %params, | ||
| 25 | }; | ||
| 26 | |||
| 27 | 0 | my $res = $self->client->request( | |
| 28 | 'GET' => 'api/trades', | ||
| 29 | $req_params, | ||
| 30 | ); | ||
| 31 | |||
| 32 | 0 | return $res; | |
| 33 | } | ||
| 34 | |||
| 35 | 2 | 1; | |