 	}
 }
 
-
-fetchQuote(getQuoteRequest(ticket, interval: interval, numOfDays: numOfDays, exchange:exchange))
+if !all
+{
+	fetchQuote(getQuoteRequest(ticket, interval: interval, numOfDays: numOfDays, exchange:exchange))
+}
+else
+{
+	fetchQuote(getQuoteRequest(ticket, exchange: exchange))
+}

var ticket:String = "0700"
var exchange = "HKG"
var numOfDays:Int = 1

var skip:Bool = false
for i in 1..<Int(Process.argc)

		case "-v":
			verbose = true
			break
		
		case "-a":
			all = true
			break
		
		case "-h":
			let msg = Process.arguments[0] + " -t STOCK_TICKET [-i QUOTE_INTERVAL_SECONDS] [-d NUM_OF_DAYS] [-x EXCHANGE_NAME]"
			println(msg)
