1from tinkoff.invest import Quotation 2from tinkoff.invest.utils import quotation_to_decimal 3 4 5def quotation_to_float(quotation: Quotation): 6 return float(quotation_to_decimal(quotation)) 7 8 9def fixed_float(number: float) -> str: 10 return f"{number:.3f}" 11 12