Skip to content

borisdev/play_mev_bot

Repository files navigation

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

About

A Python MEV bot as a learning exercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published