bhive.asset module¶
-
class
bhive.asset.
Asset
(asset, lazy=False, full=False, hive_instance=None)¶ Bases:
bhive.blockchainobject.BlockchainObject
Deals with Assets of the network.
- Parameters
Asset (str) – Symbol name or object id of an asset
lazy (bool) – Lazy loading
full (bool) – Also obtain bitasset-data and dynamic asset dat
hive_instance (Hive) – Hive instance
- Returns
All data of an asset
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
Asset.refresh()
.-
property
asset
¶
-
property
precision
¶
-
refresh
()¶ Refresh the data from the API server
-
property
symbol
¶
-
type_id
= 3¶