graphenecommon.aio.asset module¶
-
class
graphenecommon.aio.asset.Asset(*args, **kwargs)¶ Bases:
graphenecommon.aio.blockchainobject.BlockchainObject,graphenecommon.asset.AssetDeals with Assets of the network.
Parameters: - Asset (str) – Symbol name or object id of an asset
- full (bool) – Also obtain bitasset-data and dynamic asset data
- blockchain_instance (instance) – instance to use when accesing a RPC
Returns: All data of an asset
Return type: dict
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
await Asset.refresh().-
ensure_full()¶
-
refresh()¶ Refresh the data from the API server
-
update_cer(cer, account=None, **kwargs)¶ Update the Core Exchange Rate (CER) of an asset