def trade_cal
      resp = HTTParty.get(ALL_CAL_FILE)
      result = []
      CSV.new(resp.body.encode('utf-8', 'gbk')).drop(1).each do |arr|
        result << { 'date' => arr[0], 'is_open' => arr[1] }
      end
      result
    end
def trade_cal
      resp = HTTParty.get(ALL_CAL_FILE)
      result = []
      CSV.new(resp.body.encode('utf-8', 'gbk')).drop(1).each do |arr|
        result << { 'date' => arr[0], 'is_open' => arr[1] }
      end
      result
    end
交易日历 isOpen=1是交易日，isOpen=0为休市