NAME

Finance::CoinbasePro::API::CLI::Converter - converts between currencies

DESCRIPTION

my $converter = Finance::CoinbasePro::API::CLI::Converter->new( conversions=>[{from=>"BTC", to=>"USD", factor=>7884}] ); my $converted = $converter->convert( Finance::CoinbasePro::API::CLI:Value->new( num=>10, currency=>"BTC" ), "USD" );

REQUIRES

Finance::CoinbasePro::API::CLI::ConversionFactor

Finance::CoinbasePro::API::CLI::Value

Mouse

METHODS

convert

convert();

my $converter = Finance::CoinbasePro::API::CLI::Converter->new( conversions=>[{from=>"BTC", to=>"USD", factor=>7884}] ); my $converted = $converter->convert( Finance::CoinbasePro::API::CLI:Value->new( num=>10, currency=>"BTC" ), "USD" );