EnzymeAsset#

tradeexecutor.ethereum.enzyme.asset.EnzymeAsset Python class in Trading Strategy framework.

class EnzymeAsset[source]#

Bases: object

JSON’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_id

symbol

Token symbol

type

primitive_address

Token address

chainlink_aggregator_address

added_block_number

added_at

removed_block_number

removed_at

symbol: Optional[str]#

Token symbol

Note broken tokens may not have symbol

primitive_address: str#

Token address

static convert_raw_feed(feed)[source]#

Convert raw Enzyme price feed to JSON serialisable format.

Parameters:

feed (EnzymePriceFeed) –

Return type:

EnzymeAsset

__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