How to calculate or get data from Toolbox->Exposure?

 

Hello, I was searching the whole documentation for symbols, and the codebase, but was not able to find any function that returns the following data from Toolbox->Exposure tab:

1. Assets quantity and symbol as a string

2. Net Volume

3. Rate of currency exchange


I came with nothing to code, how Metatrader even calculates the currency exchange (ie USD to EUR)? It gets that info from the broker/exchange, I believe.


Thank you.