is_tradeable_token
Documentation for eth_defi.token_analysis.tokensniffer.is_tradeable_token function.
- is_tradeable_token(data, symbol=None, risk_score_threshold=65, whitelist={'AAVE', 'DAI', 'FLOKI', 'MKR', 'NEXO', 'PEPE', 'SNX', 'SYN', 'USDC', 'USDS', 'USDT', 'WBTC', 'WETH'})[source]
Risk assessment for open-ended trade universe.
Based on TokenSniffer reply, determine if we want to trade this token or not
Note
This will alert for USDT/USDC, etc. so be careful.
Some example thresholds:
WARN: Skipping pair USDT-USDC-uniswap-v2-30bps, address 0xdac17f958d2ee523a2206206994597c13d831ec7 as the TokenSniffer score 45 is below our risk threshold, liquidity is 2,447,736.44 USD WARN: Skipping pair MKR-DAI-uniswap-v2-30bps as the TokenSniffer score 70 is below our risk threshold, liquidity is 76,978,850.37 WARN: Skipping pair PEPE-WETH-uniswap-v2-30bps as the TokenSniffer score 70 is below our risk threshold, liquidity is 19,104,516.38 WARN: Skipping pair XXi-WETH-uniswap-v2-30bps as the TokenSniffer score 50 is below our risk threshold, liquidity is 10,234,803.81 WARN: Skipping pair PAXG-WETH-uniswap-v2-30bps as the TokenSniffer score 20 is below our risk threshold, liquidity is 9,197,796.28 WARN: Skipping pair FLOKI-WETH-uniswap-v2-30bps as the TokenSniffer score 69 is below our risk threshold, liquidity is 8,786,378.77 WARN: Skipping pair BEAM-WETH-uniswap-v2-30bps as the TokenSniffer score 70 is below our risk threshold, liquidity is 5,192,385.34
- Parameters
whitelist –
Always whitelist these if the token symbol matches.
E.g. WBTC needs to be whitelisted, as its risk score is 45.
data (eth_defi.token_analysis.tokensniffer.TokenSnifferReply) –
- Returns
True if we want to trade
- Return type