uniswap_v2_execution#

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

Module description#

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

Classes#

UniswapV2ExecutionModel

Run order execution on a single Uniswap v2 style exchanges.

Functions#

get_current_price(web3, uniswap, pair[, ...])

Get a price from Uniswap v2 pool, assuming you are selling 1 unit of base token.