line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::Crypto::Exchange::Kraken::REST::Private::User::Trading; |
2
|
|
|
|
|
|
|
our $VERSION = '0.002'; |
3
|
1
|
|
|
1
|
|
674
|
use Moose::Role; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
11
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# ABSTRACT: Role for Kraken "Prive user trading" API calls |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
requires qw( |
8
|
|
|
|
|
|
|
call |
9
|
|
|
|
|
|
|
_private |
10
|
|
|
|
|
|
|
); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub add_standard_order { |
13
|
1
|
|
|
1
|
1
|
19829
|
my $self = shift; |
14
|
1
|
|
|
|
|
7
|
my $req = $self->_private('AddOrder', @_); |
15
|
1
|
|
|
|
|
8
|
return $self->call($req); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub cancel_open_order { |
19
|
1
|
|
|
1
|
1
|
7467
|
my $self = shift; |
20
|
1
|
|
|
|
|
5
|
my $req = $self->_private('CancelOrder', @_); |
21
|
1
|
|
|
|
|
5
|
return $self->call($req); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=pod |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=encoding UTF-8 |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 NAME |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Finance::Crypto::Exchange::Kraken::REST::Private::User::Trading - Role for Kraken "Prive user trading" API calls |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 VERSION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
version 0.002 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 SYNOPSIS |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
package Foo; |
43
|
|
|
|
|
|
|
use Moose; |
44
|
|
|
|
|
|
|
with qw(Finance::Crypto::Exchange::Kraken::REST::Private::User::Trading); |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 DESCRIPTION |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
This role implements the Kraken REST API for I<private user trading>. For |
49
|
|
|
|
|
|
|
extensive information please have a look at the L<Kraken API |
50
|
|
|
|
|
|
|
manual|https://www.kraken.com/features/api#private-user-trading> |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 METHODS |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head2 add_standard_order |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
L<https://api.kraken.com/0/private/AddOrder> |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head2 cancel_open_order |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
L<https://api.kraken.com/0/private/CancelOrder> |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 AUTHOR |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Wesley Schwengle <waterkip@cpan.org> |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
This software is Copyright (c) 2020 by Wesley Schwengle. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
This is free software, licensed under: |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
The (three-clause) BSD License |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=cut |