bitcart/utils.py
def convert_amount_type(amount: str) -> Decimal:
    """Convert amount from str to Decimal

    Args:
        amount (str): amount

    Returns:
        Decimal
    """
    if amount == "None":
        return Decimal("Nan")
    return Decimal(amount)
Convert amount from str to Decimal

    Args:
        amount (str): amount

    Returns:
        Decimal
    
Convert amount from str to Decimal
Convert amount from str to Decimal
def convert_amount_type(amount: str) -> Decimal:
    if amount == "None":
        return Decimal("Nan")
    return Decimal(amount)
def convert_amount_type ( amount : str ) -> Decimal : if amount == "None" : return Decimal ( "Nan" ) return Decimal ( amount )
Convert amount from str to Decimal
Convert amount from str to Decimal
"""Convert amount from str to Decimal

    Args:
        amount (str): amount

    Returns:
        Decimal
    """
None
amount
str
None