EnzymeAsset#
API documentation for tradeexecutor.ethereum.enzyme.asset.EnzymeAsset Python class in Trading Strategy framework.
- class EnzymeAsset[source]#
Bases:
objectJSON’nable entry of Enzyme supported asset.
- __init__(chain_id, symbol, type, primitive_address, chainlink_aggregator_address, added_block_number, added_at, removed_block_number=None, removed_at=None)#
- Parameters:
- Return type:
None
Methods
__init__(chain_id, symbol, type, ...[, ...])convert_raw_feed(feed)Convert raw Enzyme price feed to JSON serialisable format.
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
chain_idToken symbol
typeToken address
chainlink_aggregator_addressadded_block_numberadded_atremoved_block_numberremoved_at- static convert_raw_feed(feed)[source]#
Convert raw Enzyme price feed to JSON serialisable format.
- Parameters:
feed (EnzymePriceFeed) –
- Return type:
- __init__(chain_id, symbol, type, primitive_address, chainlink_aggregator_address, added_block_number, added_at, removed_block_number=None, removed_at=None)#
- Parameters:
- Return type:
None