create_spot_token_map_potential_positions#
API documentation for tradeexecutor.ethereum.token.create_spot_token_map_potential_positions Python function.
- create_spot_token_map_potential_positions(pair_universe, portfolio, raise_on_unsupported=True)[source]#
Create a map of spot ERC-20 tokens in our portfolio.
- Returns:
ERC-20 address -> position map for all open/frozen spot positions and potential positions.
IF there is not yet existing position, return None.
- Parameters:
pair_universe (PandasPairUniverse) –
portfolio (Portfolio) –
- Return type:
dict[tradeexecutor.state.identifier.AssetIdentifier, tradeexecutor.state.position.TradingPosition | None]