mktintegration.actor module

class mktintegration.actor.MktActor(name, ledger_url, key=None, state=None)[source]

Bases: object

This is a simplification of the MktPlace transaction client

Each actor has: 1 Account (/account) all holdings are registered as /account/{asset name} 1 Asset type (/assets) all assets are registered as /assets/{asset name}

holdings for assets will be automatically created if needed.

This expects all assets to be uniquely named (stronger restriction than the mktplace transaction family)

update()[source]
get_state_object(name, obj_type)[source]
get_holding_id(name)[source]
get_qualified_name(name)[source]
register_asset(name)[source]
register_holding(asset_name, count=0)[source]
register_exchange_offer(inAssetFqn, inAmount, outAssetFqn, outAmount, inMin=1, inMax=1, execution='ExecuteOnce')[source]
register_sell_offer(inAssetFqn, inAmount, outAssetFqn, outAmount, inMin=1, inMax=1)[source]
exchange(offerId, amount=1)[source]
has_uncommitted_transactions()[source]