Fetch the total stock amount place total stock quantity in warehouse tree

I want to fetch total quantity of stock where total stock amount come in warehouse tree then how do I fetch.

Hello Everyone,
Any answer avelable for this question?

you can use Bin doctype

Please tell me how and where can I use it?