Added support for passing in the query and buy price via command-line arguments