is_derivative#

API documentation for tradingstrategy.utils.token_filter.is_derivative Python function.

is_derivative(token_symbol)[source]#

Identify common derivate tokens.

  • They will have the same base value e.g. wstETH and ETH

Returns:

True if token symbol matches a common known derivative token symbol pattern

Parameters:

token_symbol (str) –

Return type:

bool