Python SDK
Account
Read your profile.
Your identity, from the Account endpoint.
Your profile#
method
api.get_profile(...)
api.get_profile(*, timeout: float | None = None) -> dict
Calls GET /v1/profile · Scope: profile.read
Your user id and name. It does not change during a session.
Returns#
{"user_id": ..., "name": ...}.
Raises#
SahiNotFoundException: the account is not set up for trading.SahiRateLimitException: over 1/s.