OnChainData#

tradeexecutor.state.metadata.OnChainData Python class in Trading Strategy framework.

class OnChainData[source]#

Bases: object

Smart contract information for a strategy.

Needed for frontend deposit/redemptions/etc.

__init__(chain_id=ChainId.unknown, asset_management_mode=AssetManagementMode.dummy, smart_contracts=<factory>)#
Parameters:
Return type:

None

Methods

__init__([chain_id, asset_management_mode, ...])

from_dict(kvs, *[, infer_missing])

from_json(s, *[, parse_float, parse_int, ...])

schema(*[, infer_missing, only, exclude, ...])

to_dict([encode_json])

to_json(*[, skipkeys, ensure_ascii, ...])

Attributes

asset_management_mode

Is this s hot wallet strategy or vaulted strategy

chain_id

On which this strategy runs on

smart_contracts

Smart contracts configured for this strategy.

chain_id: ChainId = 0#

On which this strategy runs on

asset_management_mode: AssetManagementMode = 'dummy'#

Is this s hot wallet strategy or vaulted strategy

smart_contracts: EnzymeSmartContracts#

Smart contracts configured for this strategy.

Depend on the vault backend.

__init__(chain_id=ChainId.unknown, asset_management_mode=AssetManagementMode.dummy, smart_contracts=<factory>)#
Parameters:
Return type:

None