line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::CaVirtex::API::Request::Ticker; |
2
|
1
|
|
|
1
|
|
6
|
use base qw(Finance::CaVirtex::API::Request); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
89
|
|
3
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
6
|
use constant URL => 'https://cavirtex.com/api2/ticker.json'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
54
|
|
6
|
1
|
|
|
1
|
|
6
|
use constant ATTRIBUTES => qw(currencypair); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
46
|
|
7
|
1
|
|
|
1
|
|
13
|
use constant REQUEST_TYPE => 'GET'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
60
|
|
8
|
1
|
|
|
1
|
|
6
|
use constant DATA_KEY => 'ticker'; |
|
1
|
|
|
|
|
9
|
|
|
1
|
|
|
|
|
47
|
|
9
|
1
|
|
|
1
|
|
6
|
use constant IS_PRIVATE => 0; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
53
|
|
10
|
1
|
|
|
1
|
|
5
|
use constant READY => 1; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
261
|
|
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
0
|
6
|
sub url { URL } |
13
|
2
|
|
|
2
|
0
|
8
|
sub attributes { ATTRIBUTES } |
14
|
3
|
|
|
3
|
0
|
20
|
sub request_type { REQUEST_TYPE } |
15
|
0
|
|
|
0
|
0
|
0
|
sub data_key { DATA_KEY } |
16
|
2
|
|
|
2
|
0
|
13
|
sub is_private { IS_PRIVATE } |
17
|
1
|
|
|
1
|
0
|
3
|
sub is_ready_to_send { READY } |
18
|
1
|
|
|
1
|
0
|
3
|
sub currencypair { my $self = shift; $self->get_set(@_) } |
|
1
|
|
|
|
|
10
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |