create_uniswap_v2_compatible_routing#
API documentation for tradeexecutor.ethereum.routing_data.create_uniswap_v2_compatible_routing Python function.
- create_uniswap_v2_compatible_routing(routing_type, reserve_currency, chain_id=None)[source]#
Set up Uniswap v2 compatible routing. Not recommended to use by itself, because it doesn’t validate reserve currency. Rather use create_compatible_routing
- Parameters:
routing_type (TradeRouting) – TradeRouting type
reserve_currency (ReserveCurrency) – Reservecurrency type
chain_id (ChainId) –
Define routing parameters for chains.
Base is different.s
- Returns:
UniswapV2SimpleRoutingModel
- Return type: