decode_swap#
API documentation for tradingstrategy.direct_feed.uniswap_v2.decode_swap Python function.
- decode_swap(log)[source]#
Process swap event.
This function does manually optimised high speed decoding of the event.
The event signature is:
event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to );
- Parameters:
log (LogResult) –
- Return type: