Skip to content

Latest commit

 

History

History
87 lines (55 loc) · 3.2 KB

README.md

File metadata and controls

87 lines (55 loc) · 3.2 KB

WARNING: THIS IS STILL IN PROGRESS !!!!!!

A Play MEV bot

TODO reads

Why build a MEV bot?

This is purely a learning exercise on the following blockchain topics:

  • Etheruem transactions
  • DEX (Uniswap)
  • Smart contracts

And why code a MEV bot in Python versus Javascript?

  • mypy gives you type checks
  • asyncio gives you non-blocking event loop
  • help other python devs since there are fewer Python bot examples online (most are javascript)
  • this is easier to intergrate with future python based data science libraries such as pandas and numpy
  • python is easier for me so I can concentrate on learning about blockchain rather than learning about new syntax

References

Python examples

make a uniswap trade

make a flashbots bundle

get uniswap data

Other bot examples

References

  • Flashbots Bundle Explorer
  • mev-job-board

Prereqs

pip install etherscan-python
git clone https://github.com/flashbots/web3-flashbots 
cd 
pip3 .

TODOs

  • import dbm to store transaction traces (observability)
  • import tradingstrategy Trading strategy
  • import web3_defi
  • contribute to open source by adding libraries as submodules
  • Research Awesome Crypto Trading Bots
  • Research oracles