identifier#

tradeexecutor.state.identifier module.

Module description#

Asset and trading pair identifiers.

How executor internally knows how to connect trading pairs in data and in execution environment (on-chain).

Classes#

AssetIdentifier

Identify a blockchain asset for trade execution.

TradingPairIdentifier

TradingPairIdentifier(base: tradeexecutor.state.identifier.AssetIdentifier, quote: tradeexecutor.state.identifier.AssetIdentifier, pool_address: str, exchange_address: str, internal_id: Optional[int] = None, internal_exchange_id: Optional[int] = None, info_url: Optional[str] = None)