create_compatible_routing#
API documentation for tradeexecutor.ethereum.routing_data.create_compatible_routing Python function.
- create_compatible_routing(routing_type, reserve_currency)[source]#
Create compatible routing.
At the moment, can either be uniswap-v2 compatible or uniswap-v3 compatible.
This takes one of the default routing options and gives the routing model for it
The routing model consists of smart contract addresses needed to trade, the chainid, and trading fee
- Parameters:
routing_type (TradeRouting) –
reserve_currency (ReserveCurrency) –