get_current_price#
- get_current_price(web3, uniswap, pair, quantity=Decimal('1'))[source]#
Get a price from Uniswap v3 pool, assuming you are selling 1 unit of base token. See see eth_defi.uniswap_v2.fees.estimate_sell_price_decimals
Does decimal adjustment. :return: Price in quote token.
- Parameters:
web3 (Web3) –
uniswap (UniswapV3Deployment) –
pair (TradingPairIdentifier) –
- Return type: