src/fnpb/util/currency_converter.py
def fiat_to_btc(value_fiat: Decimal, fiat: str) -> Bitcoin:
    """Converts a fiat amount into a BTC value.

    Args:
        value_fiat: The value in fiat.
        fiat: The fiat ticker.
    Returns:
        The BTC amount of the fiat.
    """
    rate = _get_btc_rate(fiat)
    return value_fiat / rate
Converts a fiat amount into a BTC value.

    Args:
        value_fiat: The value in fiat.
        fiat: The fiat ticker.
    Returns:
        The BTC amount of the fiat.
    
Converts a fiat amount into a BTC value.
Converts a fiat amount into a BTC value .
def fiat_to_btc(value_fiat: Decimal, fiat: str) -> Bitcoin:
    rate = _get_btc_rate(fiat)
    return value_fiat / rate
def fiat_to_btc ( value_fiat : Decimal , fiat : str ) -> Bitcoin : rate = _get_btc_rate ( fiat ) return value_fiat / rate
Converts a fiat amount into a BTC value.
Converts a fiat amount into a BTC value .
"""Converts a fiat amount into a BTC value.

    Args:
        value_fiat: The value in fiat.
        fiat: The fiat ticker.
    Returns:
        The BTC amount of the fiat.
    """
The BTC amount of the fiat.
The BTC amount of the fiat .
value_fiat
Decimal
The value in fiat.
The value in fiat .
fiat
str
The fiat ticker.
The fiat ticker .