Token#

tradingstrategy.token.Token Python class in Trading Strategy framework.

class Token[source]#

Bases: object

Token presentation.

Capture token essentials.

__init__(chain_id, symbol, address, decimals)#
Parameters:
Return type:

None

Methods

__init__(chain_id, symbol, address, decimals)

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

address

Ethereum address of this token.

decimals

address: str#

Ethereum address of this token. Always lowercase - no checksum.

__init__(chain_id, symbol, address, decimals)#
Parameters:
Return type:

None