token#

API documentation for tradeexecutor.ethereum.token Python module in Trading Strategy.

Module description#

ERC-20 token data helpers.

Functions#

fetch_token_as_asset(web3, contract_address)

Get ERC-20 token details suitable for persistent stroage.

translate_token_details(token)

Translate on-chain fetched ERC-20 details to the persistent format.