App-cryp-exchange
view release on metacpan or search on metacpan
lib/App/cryp/Role/Exchange.pm view on Meta::CPAN
This result is analogous to an HTTP response; in fact C<$status> mostly uses
HTTP response codes. C<$reason> is analogous to HTTP status message. C<$payload>
is the actual content (optional if C<$status> is error status). C<%extra> is
optional and analogous to HTTP response headers to specify flags or attributes
or other metadata.
Some examples of enveloped result:
[200, "OK", ["BTC/USD", "ETH/BTC"]]
[404, "Not found"]
For more details about enveloped result, see L<Rinci::function>.
=head1 PROVIDED METHODS
=head2 to_canonical_currency
Usage:
$xchg->to_canonical_currency($cur) => str
( run in 1.702 second using v1.01-cache-2.11-cpan-39bf76dae61 )