EnzymeAsset#
API documentation for 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
Token symbol
type
Token address
chainlink_aggregator_address
added_block_number
added_at
removed_block_number
removed_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