getQueryOption = function getQueryOption(code){

    let market = conf.market[code.substr(0,3)];
    let option = conf.insider[market];
    let spanM  = cmd.span || option.span;
    option.qs[option.codeKey] = code;
    if(market === 'sz'){
        option.qs.CATALOGID   = option.catalog[code.substr(0,3)];
        option.qs.tab1PAGENUM = cmd.page || 1;
    }
    if(spanM){
        let span = _.parseInt(spanM);
        span = span > 24 ? 24: span;
        span = span < 1 ?   1: span;
        option.qs[option.endKey]   = moment().format(ft.outDate);
        option.qs[option.beginKey] = moment().subtract(span, 'month').format(ft.outDate);
    }
    if(cmd.from){
        if(moment(cmd.from, ft.inDate).isValid()){
            option.qs[option.beginKey] = moment(cmd.from, ft.inDate).format(ft.outDate);
        } else{
            console.error(MSG.PARAM_ERROR.em);
            return false;
        }
    }
    if(cmd.to){
        if(moment(cmd.to, ft.inDate).isValid()){
            option.qs[option.endKey] = moment(cmd.to, ft.inDate).format(ft.outDate);
        } else{
            console.error(MSG.PARAM_ERROR.em);
            return false;
        }
    }
    from = moment(option.qs[option.beginKey]).format(ft.inDate);
    to   = moment(option.qs[option.endKey]).format(ft.inDate);
    // console.log(JSON.stringify(option.qs, null, 4));
    return option;
}
Get query option from code and cmd input
@param  {String} code Symbol code
@return {Object}      Query option