myStats
myStats()
async def myStats(authData: str = "") -> Stats
Retrieve information about your Portals Stats (total bought, sold, volume)
Returns
Stats
object.
Raises
authDataError
ifauthData
is not providedrequestError
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:
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
Last updated