estimate_sell_received_amount

Documentation for eth_defi.uniswap_v3.price.estimate_sell_received_amount function.

estimate_sell_received_amount(uniswap, base_token_address, quote_token_address, quantity, target_pair_fee, *, slippage=0, intermediate_token_address=None, intermediate_pair_fee=None, block_identifier=None, verbose=False)

Estimate how much we receive for selling a certain base token amount.

See example in eth_defi.uniswap_v3.price.

Parameters
Returns

Expected quote token amount to receive

Raises

TokenDetailError – If we have an issue with ERC-20 contracts

Return type

int | tuple[int, int]