find_usd_rate#

API documentation for tradeexecutor.ethereum.tvl.find_usd_rate Python function.

find_usd_rate(strategy_universe, asset)[source]#

Find WETH/USDT or WETH/USDC rate.

  • This is approximation, not the real time rate

  • We do not care about the timestamp of the conversion rate, because TVL / liquidity is always going to be an approximation

Parameters:
Return type:

float