@click.command("<STR_LIT>")<EOL>@click.option("<STR_LIT>", "<STR_LIT>", default=None, help="<STR_LIT>")<EOL>@click.option("<STR_LIT>", "<STR_LIT>", default=None, help="<STR_LIT>")<EOL>@click.option("<STR_LIT>", "<STR_LIT>", default=None,<EOL>help="<STR_LIT>")<EOL>@click.option("<STR_LIT>", "<STR_LIT:-c>", default=None, help="<STR_LIT>")<EOL>@click.option("<STR_LIT>", "<STR_LIT>", is_flag=True)<EOL>@click_log.simple_verbosity_option(logger)<EOL>@click.pass_context<EOL>def download(ctx, help: bool, symbol: str, namespace: str, agent: str, currency: str):
if help:<EOL><INDENT>click.echo(ctx.get_help())<EOL>ctx.exit()<EOL><DEDENT>app = PriceDbApplication()<EOL>app.logger = logger<EOL>if currency:<EOL><INDENT>currency = currency.strip()<EOL>currency = currency.upper()<EOL><DEDENT>app.download_prices(currency=currency, agent=agent, symbol=symbol, namespace=namespace)<EOL>
Download the latest prices