code: def pack_req(cls, code, pl_ratio_min,
                   pl_ratio_max, trd_env, acc_id, trd_mkt, conn_id):
          
          from futuquant.common.pb.Trd_GetPositionList_pb2 import Request
          req = Request()
          req.c2s.header.trdEnv = TRD_ENV_MAP[trd_env]
          req.c2s.header.accID = acc_id
          req.c2s.header.trdMarket = TRD_MKT_MAP[trd_mkt]
          if code:
              req.c2s.filterConditions.codeList.append(code)
          if pl_ratio_min is not None:
              req.c2s.filterPLRatioMin = float(pl_ratio_min) / 100.0
          if pl_ratio_max is not None:
              req.c2s.filterPLRatioMax = float(pl_ratio_max) / 100.0
  
          return pack_pb_req(req, ProtoId.Trd_GetPositionList, conn_id)
docs: Convert from user request for trading days to PLS request