# myBalances

## myBalances()

```python
async def myBalances(authData: str = "") -> Balances
```

*Retrieve information about your Portals balances*

### Returns

`Balances` object.

### Raises

* `authDataError` if `authData` is not provided
* `requestError` if request fails.

### Balances object

#### Methods

`.toDict()`: Convert the Balances object back to a dictionary.

#### Attributes

* **Balance:**
  * `.balance` - available balance
* **Frozen balance:**
  * `.frozen_funds`- frozen balance (held on offers etc.)

### Example:

```python
from aportalsmp.account import myBalances
from aportalsmp.auth import update_auth
import asyncio

auth = asyncio.run(update_auth(api_id=123, api_hash="..."))

async def main():
    mybalances = await myBalances(authData = auth)
    print(mybalances.balance, mybalances.frozen_funds) # 2.83375 22.11
```

***See used functions:*** [*update\_auth*](https://bleach-1.gitbook.io/aportalsmp/documentation/aportalsmp.auth/update_auth)
