How to get value of Total Balance Qty in Stock Balance report for new field?

Hello!
I want to create field for POS Closing Entry
with value of Total Balance Qty in Stock Balance report.
What should I write?

you can call this function get_stock_balance from erpnext/utils.py at version-13 · frappe/erpnext · GitHub

@goldenscrew