PoolDetails
Documentation for eth_defi.uniswap_v3.pool.PoolDetails Python class.
- class PoolDetails[source]
Uniswap v3 trading pool info.
See
fetch_pool_details()
on how to construct.Attributes summary
Pool address
One pair of tokens
One pair of tokens
Pool fee as expressed in smart contracts (100*bps) e.g.
Pool fee as % multiplier, 1 = 100%
Pool contract proxy
Methods summary
__init__
(address, token0, token1, raw_fee, ...)convert_price_to_human
(tick[, ...])Convert the price obtained through
Return pool fee in Basis Points
- address: eth_typing.evm.HexAddress
Pool address
- token0: eth_defi.token.TokenDetails
One pair of tokens
- token1: eth_defi.token.TokenDetails
One pair of tokens
- raw_fee: int
Pool fee as expressed in smart contracts (100*bps) e.g. 0.3% = 30bps so raw_fee = 3000
- pool: web3.contract.contract.Contract
Pool contract proxy
- convert_price_to_human(tick, reverse_token_order=False)[source]
Convert the price obtained through
Example:
- Parameters
tick (int) – Logarithmic tick from the Uniswap pool
reverse_token_order – For natural base - quote token order. If set, assume quote token is token0.
- Return type
- __init__(address, token0, token1, raw_fee, fee, pool)
- Parameters
address (eth_typing.evm.HexAddress) –
token0 (eth_defi.token.TokenDetails) –
token1 (eth_defi.token.TokenDetails) –
raw_fee (int) –
fee (float) –
pool (web3.contract.contract.Contract) –
- Return type
None