src/fnpb/util/currency_converter.py
def btc_to_fiat(value_btc: Bitcoin, fiat: str) -> Decimal:
    """Converts a BTC amount to a supplied fiat.

    Args:
        value_btc: The value in BTC.
        fiat: The currency to convert to.
    Returns:
        The value in fiat.
    """
    rate = _get_btc_rate(fiat)
    return value_btc * rate
Converts a BTC amount to a supplied fiat.

    Args:
        value_btc: The value in BTC.
        fiat: The currency to convert to.
    Returns:
        The value in fiat.
    
Converts a BTC amount to a supplied fiat.
Converts a BTC amount to a supplied fiat .
def btc_to_fiat(value_btc: Bitcoin, fiat: str) -> Decimal:
    rate = _get_btc_rate(fiat)
    return value_btc * rate
def btc_to_fiat ( value_btc : Bitcoin , fiat : str ) -> Decimal : rate = _get_btc_rate ( fiat ) return value_btc * rate
Converts a BTC amount to a supplied fiat.
Converts a BTC amount to a supplied fiat .
"""Converts a BTC amount to a supplied fiat.

    Args:
        value_btc: The value in BTC.
        fiat: The currency to convert to.
    Returns:
        The value in fiat.
    """
The value in fiat.
The value in fiat .
value_btc
Bitcoin
The value in BTC.
The value in BTC .
fiat
str
The currency to convert to.
The currency to convert to .