uniswap_v2_execution_v0#

tradeexecutor.ethereum.uniswap_v2_execution_v0 Python module in Trading Strategy framework.

Module description#

Execution model where trade happens directly on Uniswap v2 style exchange.

TODO: Prototype code path. Only preserved for having unit test suite green. It has slight API incompatibilities in the later versions.

Classes#

UniswapV2ExecutionModelVersion0

Run order execution on a single Uniswap v2 style exchanges.

UniswapV2RoutingInstructions

Helper class to router Uniswap trades.

Functions#

broadcast_and_resolve(web3, state, trades[, ...])

Do the live trade execution.

resolve_trades(web3, ts, state, tx_map, receipts)

Resolve trade outcome.