uniswap_v2.analysis

Documentation for eth_defi.uniswap_v2.analysis module.

Uniswap v2 individual trade analysis.

Functions

analyse_trade_by_hash(web3, uniswap, tx_hash)

Analyse details of a Uniswap trade based on a transaction id.

analyse_trade_by_receipt(web3, uniswap, tx, ...)

Analyse details of a Uniswap trade based on already received receipt.

Classes

TradeFail

Describe the result of a failed Uniswap swap.

TradeResult

A base class for Success/Fail trade result.

TradeSuccess

Describe the result of a successful Uniswap swap.