Uniswap V3

Examples

uniswap_v3

Reference

async ctc.protocols.uniswap_v3_utils.async_get_pool_metadata(pool_address, **rpc_kwargs)
Parameters
  • pool_address (<class 'str'>) –

  • rpc_kwargs (Any) –

Return type

<class ‘uniswap_v3uniswap_v3UniswapV3PoolMetadata’>

async ctc.protocols.uniswap_v3_utils.async_get_pool_swaps(pool_address, start_block=None, end_block=None, replace_symbols=False, normalize=True)
Parameters
  • pool_address (Address) –

  • start_block (BlockNumberReference | None) –

  • end_block (BlockNumberReference | None) –

  • replace_symbols (bool) –

  • normalize (bool) –

Return type

DataFrame

async ctc.protocols.uniswap_v3_utils.async_quote_exact_input_single(token_in, token_out, fee, amount_in, sqrt_price_limit_x96=0, provider=None, block=None)
Parameters
  • token_in (Address) –

  • token_out (Address) –

  • fee (int) –

  • amount_in (int) –

  • sqrt_price_limit_x96 (int) –

  • provider (ProviderSpec) –

  • block (BlockNumberReference | None) –

Return type

int

async ctc.protocols.uniswap_v3_utils.async_quote_exact_output_single(token_in, token_out, fee, amount_out, sqrt_price_limit_x96=0, provider=None, block=None)
Parameters
  • token_in (Address) –

  • token_out (Address) –

  • fee (int) –

  • amount_out (int) –

  • sqrt_price_limit_x96 (int) –

  • provider (ProviderSpec) –

  • block (BlockNumberReference | None) –

Return type

int