swap#

API documentation for tradeexecutor.ethereum.swap Python module in Trading Strategy.

Module description#

Post-trade execution swap helpers.

Functions#

get_swap_transactions(trade)

Get the swap transaction from multiple transactions associated with the trade

is_swap_function(name)

report_failure(ts, state, trade, ...)

What to do if trade fails.