firefly-iii/config/cer.php

76 lines
2.1 KiB
PHP
Raw Normal View History

<?php
2022-10-16 12:29:53 -05:00
/*
2022-10-16 12:29:53 -05:00
* cer.php
* Copyright (c) 2022 james@firefly-iii.org
*
* This file is part of Firefly III (https://github.com/firefly-iii).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
2022-10-16 12:29:53 -05:00
declare(strict_types=1);
return [
2023-07-25 02:01:44 -05:00
'url' => 'https://ff3exchangerates.z6.web.core.windows.net',
2024-03-18 00:20:33 -05:00
'enabled' => env('ENABLE_EXCHANGE_RATES', false),
2023-07-25 02:01:44 -05:00
'download_enabled' => env('ENABLE_EXTERNAL_RATES', false),
// if currencies are added, default rates must be added as well!
2024-12-30 00:36:22 -06:00
// last exchange rate update: 2024-12-30
// source: https://www.xe.com/currencyconverter/
2024-12-30 00:36:22 -06:00
'date' => '2024-12-30',
2023-07-25 02:01:44 -05:00
// all rates are from EUR to $currency:
'rates' => [
// europa
2023-07-25 02:01:44 -05:00
'EUR' => 1,
2024-12-30 00:36:22 -06:00
'HUF' => 410.79798,
'GBP' => 0.82858703,
'UAH' => 43.485934,
'PLN' => 4.2708542,
'TRY' => 36.804124,
'DKK' => 7.4591,
'RON' => 4.9768699,
// Americas
2024-12-30 00:36:22 -06:00
'USD' => 1.0430046,
'BRL' => 6.4639113,
'CAD' => 1.5006908,
'MXN' => 21.249542,
// Oceania currencies
2024-12-30 00:36:22 -06:00
'IDR' => 16860.057,
'AUD' => 1.6705648,
'NZD' => 1.8436945,
// africa
2024-12-30 00:36:22 -06:00
'EGP' => 53.038174,
'MAD' => 10.521629,
'ZAR' => 19.460263,
// asia
2024-12-30 00:36:22 -06:00
'JPY' => 164.74767,
'RMB' => 7.6138994,
'CNY' => 7.6138994,
'RUB' => 108.56771,
'INR' => 89.157391,
// int
2024-12-30 00:36:22 -06:00
'ILS' => 3.8428028,
'CHF' => 0.94044969,
'HRK' => 7.5345, // replaced by EUR
],
];