def METHOD_NAME(self, position_entry) -> contractPosition:
    position = position_entry["position"]
    if position == 0:
        raise missingContract
    expiry = position_entry["expiry"]
    instrument_code = self._get_instrument_code_from_ib_position_entry(
        position_entry
    )
    contract = futuresContract(instrument_code, expiry)
    contract_position_object = contractPosition(position, contract)
    return contract_position_object