estimate_sell_price_decimals

Documentation for eth_defi.uniswap_v2.fees.estimate_sell_price_decimals function.

estimate_sell_price_decimals(uniswap, base_token_address, quote_token_address, quantity, *, fee=30, slippage=0, intermediate_token_address=None)

Estimate how much we are going to get paid when doing a sell.

Much like estimate_sell_price() but in/out is expressed as python Decimal units. Furthermore, no ERC-20 token contract needed ABI, but it is loaded by the function.

Parameters
Returns

Expected quote token amount to receive in quota tokens (decimal converted).

Raises

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

Return type

decimal.Decimal