translate_token#
- translate_token(token, require_decimals=True)[source]#
Translate Trading Strategy token data definition to trade executor.
Trading Strategy client uses compressed columnar data for pairs and tokens.
Creates AssetIdentifier based on data coming from Trading Strategy
tradingstrategy.pair.PandasPairUniverse
.- Parameters:
require_decimals – Most tokens / trading pairs are non-functional without decimals information. Assume decimals is in place. If not then raise AssertionError. This check allows some early error catching on bad data.
token (Token) –
- Return type: