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)[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) –
reserve_currency (ReserveCurrency) –
- Return type:
TradeRouting type
- Parameters:
reserve_currency (ReserveCurrency) –
routing_type (TradeRouting) –
- Return type:
Reservecurrency type
- Returns:
- Parameters:
routing_type (TradeRouting) –
reserve_currency (ReserveCurrency) –
- Return type:
UniswapV2SimpleRoutingModel