is_stablecoin_like#

API documentation for tradingstrategy.stablecoin.is_stablecoin_like Python function.

is_stablecoin_like(token_symbol, symbol_list=('DAI', 'USDC', 'USDT', 'DAI', 'BUSD', 'UST', 'USDN', 'LUSD', 'VUSD', 'USDV', 'EUROe', 'EURT', 'USDP', 'iUSD', 'USDS', 'gmUSD', 'USDR', 'RAI', 'EURS', 'TUSD', 'EURe', 'USD+', 'EUROC', 'USDs', 'USDT.e', 'USDC.e', 'GHST', 'jEUR', 'crvUSD', 'DOLA', 'GUSD', 'USDe', 'kUSD', 'cUSDC', 'cUSDT', 'sUSD', 'aDAI', 'cDAI', 'tfUSDC', 'alUSD', 'agEUR', 'gmdUSDC', 'gDAI', 'blUSD'))[source]#

Check if specific token symbol is likely a stablecoin.

Useful for quickly filtering stable/stable pairs in the pools. However, you should never rely on this check alone.

Note that new stablecoins might be introduced, so this check is never going to be future proof.

Parameters:
  • token_symbol (str) – Token symbol as it is written on the contract. May contain lower and uppercase latter.

  • symbol_list – Which filtering list we use.

Return type:

bool