translate_trading_pair#

translate_trading_pair(pair)[source]#

Translate trading pair from client download to the trade executor.

Trading Strategy client uses compressed columnar data for pairs and tokens.

Translates a trading pair presentation from Trading Strategy client Pandas format to the trade executor format.

Trade executor work with multiple different strategies, not just Trading Strategy client based. For example, you could have a completely on-chain data based strategy. Thus, Trade Executor has its internal asset format.

This module contains functions to translate asset presentations between Trading Strategy client and Trade Executor.

This is called when a trade is made: this is the moment when trade executor data format must be made available.

Parameters

pair (DEXPair) –

Return type

TradingPairIdentifier