crater-invoice / crater

Open Source Invoicing Solution for Individuals & Businesses
https://craterapp.com
GNU Affero General Public License v3.0
7.62k stars 1.53k forks source link

Add Bitcoin (XBT) as currency #1258

Open PraiaBitcoin opened 10 months ago

PraiaBitcoin commented 10 months ago

We need to track expenses in Bitcoin for the Bitcoin Communities that we are helping worldwide, and we would like to try Crater to do it, but we need to add XBT ticker as a currency.

The abbreviation "XBT" comes from the International Standards Organization (ISO) that maintains a list of internationally recognized currencies.

Describe the solution you'd like Add the code below on [database/seeds/CurrenciesTableSeeder.php]

            [
                'name' => 'Bitcoin',
                'code' => 'XBT',
                'symbol' => '',
                'symbol' => '₿',
                'precision' => '8',
                'thousand_separator' => ',',
                'decimal_separator' => '.'
            ],

Also, we need to get the prices from the Coingecko api here https://api.coingecko.com/api/v3/exchange_rates

jenishngl commented 10 months ago

This project is dead. Check here