@click.command()<EOL>@click.option("<STR_LIT>", "<STR_LIT>")<EOL>def last(symbol: str):
app = PriceDbApplication()<EOL>if symbol:<EOL><INDENT>symbol = symbol.upper()<EOL>sec_symbol = SecuritySymbol("<STR_LIT>", "<STR_LIT>")<EOL>sec_symbol.parse(symbol)<EOL>latest = app.get_latest_price(sec_symbol)<EOL>assert isinstance(latest, PriceModel)<EOL>print(f"<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>latest = app.get_latest_prices()<EOL>for price in latest:<EOL><INDENT>print(f"<STR_LIT>")<EOL><DEDENT><DEDENT>
displays last price, for symbol if provided