PoolDetails

Documentation for eth_defi.uniswap_v3.pool.PoolDetails class.

class PoolDetails[source]

Uniswap v3 trading pool info.

Attributes summary

address

Pool address

token0

One pair of tokens

token1

One pair of tokens

raw_fee

Pool fee in BPS

fee

Pool fee as % multiplier, 1 = 100%

Methods summary

__init__(address, token0, token1, raw_fee, fee)

convert_price_to_human(tick[, ...])

Convert the price obtained through

address: 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 in BPS

fee: float

Pool fee as % multiplier, 1 = 100%

convert_price_to_human(tick, reverse_token_order=False)[source]

Convert the price obtained through

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.

__init__(address, token0, token1, raw_fee, fee)
Parameters
Return type

None