filter_for_nonascii_tokens#

API documentation for tradingstrategy.pair.filter_for_nonascii_tokens Python function.

filter_for_nonascii_tokens(pairs)[source]#

Remove tokens with unprintable characters

  • Emojis

  • Some crap tokens like 20SML025��������

  • There should be no legit tokens with non-ASCII names

Returns:

DataFrame with trading pairs filtered to match quote token condition

Parameters:

pairs (DataFrame) –

Return type:

DataFrame