OnChainData#
API documentation for 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>, owner=None, trade_executor_hot_wallet=None)#
- Parameters:
chain_id (ChainId) –
asset_management_mode (AssetManagementMode) –
smart_contracts (EnzymeSmartContracts) –
owner (str) –
trade_executor_hot_wallet (str) –
- 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
Is this s hot wallet strategy or vaulted strategy
On which this strategy runs on
Vault owner address
Asset manager address.
Smart contracts configured for this strategy.
- 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>, owner=None, trade_executor_hot_wallet=None)#
- Parameters:
chain_id (ChainId) –
asset_management_mode (AssetManagementMode) –
smart_contracts (EnzymeSmartContracts) –
owner (str) –
trade_executor_hot_wallet (str) –
- Return type:
None