# man > Finance::Quote::CurrencyRates::Fixer

## NAME
    [Finance::Quote::CurrencyRates::Fixer](https://www.chedong.com/phpMan.php/perldoc/Finance%3A%3AQuote%3A%3ACurrencyRates%3A%3AFixer/markdown) - Obtain currency rates from <https://fixer.io>

## SYNOPSIS
        use [Finance::Quote](https://www.chedong.com/phpMan.php/perldoc/Finance%3A%3AQuote/markdown);

        $q = [Finance::Quote](https://www.chedong.com/phpMan.php/perldoc/Finance%3A%3AQuote/markdown)->new(currency_rates => {order => ['Fixer'],
                                                    fixer => {API_KEY => ...}});

        $value = $q->currency('18.99 EUR', 'USD');

## DESCRIPTION
    This module fetches currency rates from <https://fixer.io> and provides data to [Finance::Quote](https://www.chedong.com/phpMan.php/perldoc/Finance%3A%3AQuote/markdown) to
    convert the first argument to the equivalent value in the currency indicated by the second
    argument.

    This module caches the currency rates for the lifetime of the quoter object, unless 'cache => 0'
    is included in the 'fixer' options hash.

## APIKEY
    <https://fixer.io> requires users to register and obtain an API key.

    The API key must be set by providing a 'fixer' hash inside the 'currency_rates' hash to
    [Finance::Quote](https://www.chedong.com/phpMan.php/perldoc/Finance%3A%3AQuote/markdown)->new as in the above example.

Terms & Conditions
    Use of <https://fixer.io> is governed by any terms & conditions of that site.

    [Finance::Quote](https://www.chedong.com/phpMan.php/perldoc/Finance%3A%3AQuote/markdown) is released under the GNU General Public License, version 2, which explicitly
    carries a "No Warranty" clause.

