DexFactory#
- enum empyrealSDK.types.DexFactory(value)[source]#
- An enumeration. - Valid values are as follows: - UniswapV2 = <DexFactory.UniswapV2: 'uniswap'>#
 - The - Enumand its members also have the following methods:- async get_taxes(token0_address, token1_address=None, chain_id: int = 1)[source]#
- Get swap taxes for a token 
 - get_price(token_address: ChecksumAddress)[source]#
- get_price(token: Token)
- Get the price for a token using the best route to WETH/USDC 
 - async get_pair_info(pair_address: HexAddress, force_checksum: bool = True, chain_id: int = 1)[source]#
- Get metadata for a particular LP Pair. 
 - async get_pairs(token: Token) list[DexPair][source]#
- A simple function get all pairs with a token. - Returns:
- A list of all pairs associated with a token 
 
 - async simulate_swap(path: Sequence[Literal['eth'] | ChecksumAddress], amount_in: int, sender: ChecksumAddress, fees: list[int] = [], use_eth: bool = True, network: Network = Network.Ethereum) TokenAmount[source]#
- Simulate a swap on a given path 
 - async swap(path: list[ChecksumAddress], wallet: Wallet, amount_in: TokenAmount | int, slippage_percent: float, priority_fee: int = 0, is_private: bool = False, fees: list[int] = [], use_eth: bool = True, network: Network = Network.Ethereum) HexStr[source]#