# myStats

## myStats()

```python
async def myStats(authData: str = "") -> Stats
```

*Retrieve information about your Portals Stats (total bought, sold, volume)*

### Returns

`Stats` object.

### Raises

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

### Stats object

#### Methods

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

#### Attributes

* **Total Bought:**
  * `.total_bought` - total gifts you bought on Portals
* **Total Sold:**
  * `.total_sold` - total gifts you sold on Portals
* **Total Volume:**
  * `.total_volume` - your total volume on Portals

### Example:

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

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

async def main():
    mystats = await myStats(authData = auth)
    print(mystats.total_bought, mystats.total_sold) # 64 66 681.62
```

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