beem.account module¶
-
class
beem.account.
Account
(account, id_item='name', full=True, lazy=False, steem_instance=None)¶ Bases:
beem.blockchainobject.BlockchainObject
This class allows to easily access Account data
Parameters: - account_name (str) – Name of the account
- steem_instance (steem.steem.Steem) – Steem instance
- lazy (bool) – Use lazy loading
- full (bool) – Obtain all account data including orders, positions, etc.
Returns: Account data
Return type: dictionary
Raises: beem.exceptions.AccountDoesNotExistsException – if account does not exist
Instances of this class are dictionaries that come with additional methods (see below) that allow dealing with an account and it’s corresponding functions.
from beem.account import Account account = Account("test") print(account) print(account.balances)
Note
This class comes with its own caching function to reduce the load on the API server. Instances of this class can be refreshed with
Account.refresh()
.-
available_balances
¶ List balances of an account. This call returns instances of
steem.amount.Amount
.
-
balance
(balances, symbol)¶ Obtain the balance of a specific Asset. This call returns instances of
steem.amount.Amount
.
-
balances
¶
-
ensure_full
()¶
-
getSimilarAccountNames
(limit=5)¶ Returns limit similar accounts with name as array
-
history
(limit=100, only_ops=[], exclude_ops=[])¶ Returns a generator for individual account transactions. The latest operation will be first. This call can be used in a
for
loop.Parameters: - limit (int/datetime) – limit number of transactions to return (optional)
- only_ops (array) – Limit generator by these operations (optional)
- exclude_ops (array) – Exclude thse operations from generator (optional)
-
is_fully_loaded
¶ Is this instance fully loaded / e.g. all data available?
-
name
¶
-
profile
¶ Returns the account profile
-
refresh
()¶ Refresh/Obtain an account’s data from the API server
-
rep
¶
-
reputation
(precision=2)¶
-
reward_balances
¶
-
saving_balances
¶
-
total_balances
¶
-
type_id
= 2¶