fractal.loaders.thegraph.uniswap_v3 package

Submodules

fractal.loaders.thegraph.uniswap_v3.uniswap_v3_arbitrum module

class fractal.loaders.thegraph.uniswap_v3.uniswap_v3_arbitrum.ArbitrumUniswapV3Loader(api_key: str, loader_type: LoaderType)[source]

Bases: ArbitrumGraphLoader

Loader for Uniswap V3 Arbitrum. The Graph: https://thegraph.com/explorer/subgraphs/FQ6JYszEKApsBpAmiHesRsd9Ygc6mzmpNRANeVQFYoVX?view=Query&chain=arbitrum-one SUBGRAPH_ID = “FQ6JYszEKApsBpAmiHesRsd9Ygc6mzmpNRANeVQFYoVX”

SUBGRAPH_ID = 'FQ6JYszEKApsBpAmiHesRsd9Ygc6mzmpNRANeVQFYoVX'
get_pool_decimals(address: str) Tuple[int, int][source]

Get pool input tokens decimals

Parameters:

address (str) – Pool address

Returns:

Decimals of input tokens (token0, token1)

Return type:

Tuple[int, int]

loader_type: LoaderType

fractal.loaders.thegraph.uniswap_v3.uniswap_v3_ethereum module

class fractal.loaders.thegraph.uniswap_v3.uniswap_v3_ethereum.EthereumUniswapV3Loader(api_key: str, loader_type: LoaderType)[source]

Bases: ArbitrumGraphLoader

Loader for Uniswap V3 Ethereum. The Graph: https://thegraph.com/explorer/subgraphs/5zvR82QoaXYFyDEKLZ9t6v9adgnptxYpKpSbxtgVENFV?view=Query&chain=arbitrum-one SUBGRAPH_ID = “5zvR82QoaXYFyDEKLZ9t6v9adgnptxYpKpSbxtgVENFV”

SUBGRAPH_ID = '5zvR82QoaXYFyDEKLZ9t6v9adgnptxYpKpSbxtgVENFV'
loader_type: LoaderType

fractal.loaders.thegraph.uniswap_v3.uniswap_v3_pool module

class fractal.loaders.thegraph.uniswap_v3.uniswap_v3_pool.UniswapV3ArbitrumPoolDayDataLoader(api_key: str, pool: str, loader_type: LoaderType)[source]

Bases: ArbitrumUniswapV3Loader

extract()[source]
load()[source]
read(with_run: bool = False) PoolHistory[source]
transform()[source]
class fractal.loaders.thegraph.uniswap_v3.uniswap_v3_pool.UniswapV3ArbitrumPoolHourDataLoader(api_key: str, pool: str, loader_type: LoaderType)[source]

Bases: UniswapV3ArbitrumPoolDayDataLoader

transform()[source]
class fractal.loaders.thegraph.uniswap_v3.uniswap_v3_pool.UniswapV3EthereumPoolDayDataLoader(api_key: str, pool: str, loader_type: LoaderType)[source]

Bases: EthereumUniswapV3Loader

extract()[source]
load()[source]
read(with_run: bool = False) PoolHistory[source]
transform()[source]
class fractal.loaders.thegraph.uniswap_v3.uniswap_v3_pool.UniswapV3EthereumPoolHourDataLoader(api_key: str, pool: str, loader_type: LoaderType)[source]

Bases: UniswapV3EthereumPoolDayDataLoader

transform()[source]

fractal.loaders.thegraph.uniswap_v3.uniswap_v3_spot_prices module

class fractal.loaders.thegraph.uniswap_v3.uniswap_v3_spot_prices.UniswapV3ArbitrumPricesLoader(api_key: str, pool: str, loader_type: LoaderType, **kwargs)[source]

Bases: ArbitrumUniswapV3Loader

extract()[source]
load()[source]
read(with_run: bool = False) PriceHistory[source]
transform()[source]

Module contents

class fractal.loaders.thegraph.uniswap_v3.ArbitrumUniswapV3Loader(api_key: str, loader_type: LoaderType)[source]

Bases: ArbitrumGraphLoader

Loader for Uniswap V3 Arbitrum. The Graph: https://thegraph.com/explorer/subgraphs/FQ6JYszEKApsBpAmiHesRsd9Ygc6mzmpNRANeVQFYoVX?view=Query&chain=arbitrum-one SUBGRAPH_ID = “FQ6JYszEKApsBpAmiHesRsd9Ygc6mzmpNRANeVQFYoVX”

SUBGRAPH_ID = 'FQ6JYszEKApsBpAmiHesRsd9Ygc6mzmpNRANeVQFYoVX'
get_pool_decimals(address: str) Tuple[int, int][source]

Get pool input tokens decimals

Parameters:

address (str) – Pool address

Returns:

Decimals of input tokens (token0, token1)

Return type:

Tuple[int, int]

loader_type: LoaderType
class fractal.loaders.thegraph.uniswap_v3.EthereumUniswapV3Loader(api_key: str, loader_type: LoaderType)[source]

Bases: ArbitrumGraphLoader

Loader for Uniswap V3 Ethereum. The Graph: https://thegraph.com/explorer/subgraphs/5zvR82QoaXYFyDEKLZ9t6v9adgnptxYpKpSbxtgVENFV?view=Query&chain=arbitrum-one SUBGRAPH_ID = “5zvR82QoaXYFyDEKLZ9t6v9adgnptxYpKpSbxtgVENFV”

SUBGRAPH_ID = '5zvR82QoaXYFyDEKLZ9t6v9adgnptxYpKpSbxtgVENFV'
loader_type: LoaderType
class fractal.loaders.thegraph.uniswap_v3.UniswapV3ArbitrumPoolDayDataLoader(api_key: str, pool: str, loader_type: LoaderType)[source]

Bases: ArbitrumUniswapV3Loader

extract()[source]
load()[source]
read(with_run: bool = False) PoolHistory[source]
transform()[source]
class fractal.loaders.thegraph.uniswap_v3.UniswapV3ArbitrumPoolHourDataLoader(api_key: str, pool: str, loader_type: LoaderType)[source]

Bases: UniswapV3ArbitrumPoolDayDataLoader

transform()[source]
class fractal.loaders.thegraph.uniswap_v3.UniswapV3ArbitrumPricesLoader(api_key: str, pool: str, loader_type: LoaderType, **kwargs)[source]

Bases: ArbitrumUniswapV3Loader

extract()[source]
load()[source]
read(with_run: bool = False) PriceHistory[source]
transform()[source]
class fractal.loaders.thegraph.uniswap_v3.UniswapV3EthereumPoolDayDataLoader(api_key: str, pool: str, loader_type: LoaderType)[source]

Bases: EthereumUniswapV3Loader

extract()[source]
load()[source]
read(with_run: bool = False) PoolHistory[source]
transform()[source]
class fractal.loaders.thegraph.uniswap_v3.UniswapV3EthereumPoolHourDataLoader(api_key: str, pool: str, loader_type: LoaderType)[source]

Bases: UniswapV3EthereumPoolDayDataLoader

transform()[source]