Zend certified PHP/Magento developer

Magento2 – Build stock dynamically from product children

I am working on a custom product type that is in fact a link of subsequent product skus and I need to build the stock dynamically from its product children. I have created the custom product type and the admin and frontend is working, I can add the products children into admin via a form that saves it in the database. I need help on the stock issue, having in view that the custom product type needs to support multiple source inventory. Presently Magento2 bundle products do not support multiple source inventory, as I tried before to extend from this product type.
What ideas can you give me to implement the dynamic stock with multiple sources for this custom product type? I post here the admin feature introduced.

enter image description here

enter image description here