Giter VIP home page Giter VIP logo

web3arbitragebot's Introduction

Web3ArbitrageBot

This is an arbitrage bot that was built for the Velas EVM compatible chain.

I want to stress the fact that this software is released as a toy example, it does execute profitable trades, however it does fail in some instances, and should therefor be treated as unsafe.
Although the tool is unsafe please fork it and make any required improvement. Any and all improvemtns are welcome :)

I used some inspiration from the uniswap-arbitrage-analysis report provided by uniswap to improve this bot however there is still a lot of improvements that can be made. The functioning of thisArbitrage bot is increbibly similar to the paper supplied above, so I would recommend reading it befor making changes to this bot.

A brife summary (of how the bot works)

This bot works by searching for all trading pairs on a given exchange, then using a simple breadth first search to find a trading path the begins and ends at some token (VLX in the velas network). This application will then execute a trade along that trading path iff and only if that path results in a profit. and will procket said profit in your wallet.

Due to stability issues we limit these trades to a single exchange, but we could expand to multiple exchanges in the future, greatly increasing the sea of profit that this bot can produce.

How To Run Me:

  1. Please begin by making the required changes to our config file const/config.py you can select a network between:
  • Velas, set network = "vlx"
  • Polygon, set network = "matic"
  • Binance, set network = "bnb"
  1. Further you will need to set the wallet private key (of the wallet you want to execute arbitrage trades with)
  2. Finaly you will need to set your wallet address (of the wallet you want to execute arbitrage trades with)
  3. Set the base_token to use the token you want to trade from and to. Please make sure that you have some balance of this token in your wallet.

I know that steps 2, and 3 are scary so please read through this applications source code to make sure that you are comfortable providing such sensitive information

Things to improve

There are many options to look for if you would like to make some improvements to this software. I will list a few here, but please make some feature requests in the issues section of this project.

  • Increase the number of supported chains, and decentralised exchanges.
  • Improve stability to a point where we can re-enable cros exchange arbitrage trades.
  • More to come :)

Things to remember

This software makes no promise of guarenteed profits.
If you decide to use this trading bot you will be doing it at your own risk, and the creators of this bot cannot be held liable for any loss occured because of this software.
THIS IS FOR EDUCATIONAL PURPOSES ONLY

web3arbitragebot's People

Contributors

ljlabs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.