asset#

API documentation for tradeexecutor.strategy.asset Python module in Trading Strategy.

Module description#

Asset management helpers.

Figure how to map different tokens related to their trading positions.

Classes#

AssetToPositionsMapping

Tell us which positions hold the asset in a portfolio.

Functions#

build_expected_asset_map(portfolio[, ...])

Get list of tokens that the portfolio should hold.

get_asset_amounts(p)

What tokens this position should hold in a wallet.

get_onchain_assets(pair)

get_relevant_assets(pair_universe, ...)

Get list of tokens that are relevant for the straegy.

map_onchain_asset_to_position(asset, state)

Map an on-chain found asset to a trading position.