line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::Crypto::Exchange::Kraken::REST::Private::User::Funding; |
2
|
|
|
|
|
|
|
our $VERSION = '0.002'; |
3
|
1
|
|
|
1
|
|
621
|
use Moose::Role; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
15
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# ABSTRACT: Role for Kraken "Prive user funding" API calls |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
requires qw( |
8
|
|
|
|
|
|
|
_private |
9
|
|
|
|
|
|
|
call |
10
|
|
|
|
|
|
|
); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub get_deposit_methods { |
13
|
1
|
|
|
1
|
1
|
7463
|
my $self = shift; |
14
|
1
|
|
|
|
|
6
|
my $req = $self->_private('DepositMethods', @_); |
15
|
1
|
|
|
|
|
8
|
return $self->call($req); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub get_deposit_addresses { |
19
|
1
|
|
|
1
|
1
|
10797
|
my $self = shift; |
20
|
1
|
|
|
|
|
6
|
my $req = $self->_private('DepositAddresses', @_); |
21
|
1
|
|
|
|
|
6
|
return $self->call($req); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub get_recent_deposit_status { |
25
|
1
|
|
|
1
|
1
|
7367
|
my $self = shift; |
26
|
1
|
|
|
|
|
6
|
my $req = $self->_private('DepositStatus', @_); |
27
|
1
|
|
|
|
|
7
|
return $self->call($req); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub get_withdrawal_info { |
31
|
1
|
|
|
1
|
1
|
7398
|
my $self = shift; |
32
|
1
|
|
|
|
|
6
|
my $req = $self->_private('WithdrawInfo', @_); |
33
|
1
|
|
|
|
|
6
|
return $self->call($req); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub withdraw_funds { |
37
|
1
|
|
|
1
|
1
|
7473
|
my $self = shift; |
38
|
1
|
|
|
|
|
6
|
my $req = $self->_private('Withdraw', @_); |
39
|
1
|
|
|
|
|
6
|
return $self->call($req); |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub get_recent_withdrawal_status { |
43
|
1
|
|
|
1
|
1
|
7364
|
my $self = shift; |
44
|
1
|
|
|
|
|
7
|
my $req = $self->_private('WithdrawStatus', @_); |
45
|
1
|
|
|
|
|
7
|
return $self->call($req); |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
sub request_withdrawal_cancel { |
49
|
1
|
|
|
1
|
1
|
7528
|
my $self = shift; |
50
|
1
|
|
|
|
|
6
|
my $req = $self->_private('WithdrawCancel', @_); |
51
|
1
|
|
|
|
|
7
|
return $self->call($req); |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
sub wallet_transfer { |
55
|
1
|
|
|
1
|
1
|
7494
|
my $self = shift; |
56
|
1
|
|
|
|
|
7
|
my $req = $self->_private('WalletTransfer', @_); |
57
|
1
|
|
|
|
|
6
|
return $self->call($req); |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
1; |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
__END__ |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=pod |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=encoding UTF-8 |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 NAME |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Finance::Crypto::Exchange::Kraken::REST::Private::User::Funding - Role for Kraken "Prive user funding" API calls |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 VERSION |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
version 0.002 |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 SYNOPSIS |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
package Foo; |
79
|
|
|
|
|
|
|
use Moose; |
80
|
|
|
|
|
|
|
with qw(Finance::Crypto::Exchange::Kraken::REST::Private::User::Funding); |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 DESCRIPTION |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
This role implements the Kraken REST API for I<private user funding>. For |
85
|
|
|
|
|
|
|
extensive information please have a look at the L<Kraken API |
86
|
|
|
|
|
|
|
manual|https://www.kraken.com/features/api#private-user-funding> |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head1 METHODS |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head2 get_deposit_methods |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
L<https://api.kraken.com/0/private/DepositMethods> |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head2 get_deposit_addresses |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
L<https://api.kraken.com/0/private/DepositAddresses> |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head2 get_recent_deposit_status |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
L<https://api.kraken.com/0/private/DepositStatus> |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head2 get_withdrawal_info |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
L<https://api.kraken.com/0/private/WithdrawInfo> |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=head2 withdraw_funds |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
L<https://api.kraken.com/0/private/Withdraw> |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=head2 get_recent_withdrawal_status |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
L<https://api.kraken.com/0/private/WithdrawStatus> |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=head2 request_withdrawal_cancel |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
L<https://api.kraken.com/0/private/WithdrawCancel> |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=head2 wallet_transfer |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
L<https://api.kraken.com/0/private/WalletTransfer> |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=head1 AUTHOR |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
Wesley Schwengle <waterkip@cpan.org> |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
This software is Copyright (c) 2020 by Wesley Schwengle. |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
This is free software, licensed under: |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
The (three-clause) BSD License |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=cut |