default_routes#

tradeexecutor.ethereum.default_routes module.

Module description#

Default routing models for Uniswap v2 like exchange.

Describe which smart contract addresses are used to make a trade. Map factory addresses, router addresses and quote token addresses.

Classes#

RoutingData

Describe raw smart contract order routing data.

Functions#

create_uniswap_v2_compatible_routing(...)

Set up pancake routing

get_backtest_routing_model(routing_type, ...)

Get routing options for backtests.

get_pancake_default_routing_parameters(...)

Generate routing using PancakeSwap v2 router.

get_routing_model(execution_context, ...)

Create trade routing model for the strategy.

get_uniswap_v2_default_routing_parameters(...)

Generate routing using Uniswap v2 router.