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.

Does decimal adjustment.

Returns:

Price in quote token.

Parameters:
Return type:

float