| 1 | package Finance::GDAX::API::CoinbaseAccount; | ||
| 2 | 1 | our $VERSION = '0.01'; | |
| 3 | 1 | ▶ | use 5.20.0; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use Finance::GDAX::API; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | extends 'Finance::GDAX::API'; | |
| 10 | |||
| 11 | sub get { | ||
| 12 | 0 | ▶ | my $self = shift; |
|
Subroutine
get: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 13 | 0 | $self->method('GET'); | |
| 14 | 0 | $self->path('/coinbase-accounts'); | |
| 15 | 0 | return $self->send; | |
| 16 | } | ||
| 17 | |||
| 18 | 1 | __PACKAGE__->meta->make_immutable; | |
| 19 | 1 | 1; | |
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Finance::GDAX::API::CoinbaseAccount - List Coinbase Accounts | ||
| 24 | |||
| 25 | =head1 SYNOPSIS | ||
| 26 | |||
| 27 | use Finance::GDAX::API::CoinbaseAccount; | ||
| 28 | |||
| 29 | $coinbase_accts = Finance::GDAX::API::CoinbaseAccount->new; | ||
| 30 | |||
| 31 | # Array of Hashes of Coinbase accounts | ||
| 32 | $accounts = $coinbase_accts->get; | ||
| 33 | |||
| 34 | =head2 DESCRIPTION | ||
| 35 | |||
| 36 | Returns an array of Coinbase acccounts associated with the account. | ||
| 37 | |||
| 38 | =head1 METHODS | ||
| 39 | |||
| 40 | =head2 C<get> | ||
| 41 | |||
| 42 | Returns an array of Coinbase acccounts associated with the account. | ||
| 43 | |||
| 44 | The API documents the array of hashes as follows: | ||
| 45 | |||
| 46 | [ | ||
| 47 | { | ||
| 48 | "id": "fc3a8a57-7142-542d-8436-95a3d82e1622", | ||
| 49 | "name": "ETH Wallet", | ||
| 50 | "balance": "0.00000000", | ||
| 51 | "currency": "ETH", | ||
| 52 | "type": "wallet", | ||
| 53 | "primary": false, | ||
| 54 | "active": true | ||
| 55 | }, | ||
| 56 | { | ||
| 57 | "id": "2ae3354e-f1c3-5771-8a37-6228e9d239db", | ||
| 58 | "name": "USD Wallet", | ||
| 59 | "balance": "0.00", | ||
| 60 | "currency": "USD", | ||
| 61 | "type": "fiat", | ||
| 62 | "primary": false, | ||
| 63 | "active": true, | ||
| 64 | "wire_deposit_information": { | ||
| 65 | "account_number": "0199003122", | ||
| 66 | "routing_number": "026013356", | ||
| 67 | "bank_name": "Metropolitan Commercial Bank", | ||
| 68 | "bank_address": "99 Park Ave 4th Fl New York, NY 10016", | ||
| 69 | "bank_country": { | ||
| 70 | "code": "US", | ||
| 71 | "name": "United States" | ||
| 72 | }, | ||
| 73 | "account_name": "Coinbase, Inc", | ||
| 74 | "account_address": "548 Market Street, #23008, San Francisco, CA 94104", | ||
| 75 | "reference": "BAOCAEUX" | ||
| 76 | } | ||
| 77 | }, | ||
| 78 | { | ||
| 79 | "id": "1bfad868-5223-5d3c-8a22-b5ed371e55cb", | ||
| 80 | "name": "BTC Wallet", | ||
| 81 | "balance": "0.00000000", | ||
| 82 | "currency": "BTC", | ||
| 83 | "type": "wallet", | ||
| 84 | "primary": true, | ||
| 85 | "active": true | ||
| 86 | }, | ||
| 87 | { | ||
| 88 | "id": "2a11354e-f133-5771-8a37-622be9b239db", | ||
| 89 | "name": "EUR Wallet", | ||
| 90 | "balance": "0.00", | ||
| 91 | "currency": "EUR", | ||
| 92 | "type": "fiat", | ||
| 93 | "primary": false, | ||
| 94 | "active": true, | ||
| 95 | "sepa_deposit_information": { | ||
| 96 | "iban": "EE957700771001355096", | ||
| 97 | "swift": "LHVBEE22", | ||
| 98 | "bank_name": "AS LHV Pank", | ||
| 99 | "bank_address": "Tartu mnt 2, 10145 Tallinn, Estonia", | ||
| 100 | "bank_country_name": "Estonia", | ||
| 101 | "account_name": "Coinbase UK, Ltd.", | ||
| 102 | "account_address": "9th Floor, 107 Cheapside, London, EC2V 6DN, United Kingdom", | ||
| 103 | "reference": "CBAEUXOVFXOXYX" | ||
| 104 | } | ||
| 105 | }, | ||
| 106 | ] | ||
| 107 | |||
| 108 | =cut | ||
| 109 | |||
| 110 | |||
| 111 | =head1 AUTHOR | ||
| 112 | |||
| 113 | Mark Rushing <mark@orbislumen.net> | ||
| 114 | |||
| 115 | =head1 COPYRIGHT AND LICENSE | ||
| 116 | |||
| 117 | This software is copyright (c) 2017 by Home Grown Systems, SPC. | ||
| 118 | |||
| 119 | This is free software; you can redistribute it and/or modify it under | ||
| 120 | the same terms as the Perl 5 programming language system itself. | ||
| 121 | |||
| 122 | =cut | ||
| 123 | |||