Giter VIP home page Giter VIP logo

defi-arbitrage's Introduction

Uni-Sushi-Kyber-Pancake-Liquidity

Not the optimum path to arbitrage but good learning tools to help understand how liquidity effects different prices on defi-exchanges Web3, nodejs, javascript, infura tools to measure liquidity between Uniswap and Sushiswap. Binance Chain(Pancake,Apeswap,Julswap,Bakeryswap) price comparison also.

  1. Install nodejs from command line FILE LOCATION THEN --- install npm
  2. Create dot env file (.env) from command line --- https://www.npmjs.com/package/dotenv
  3. Create an Infura account --- https://infura.io/

.env file should look like this

RPC_URL="https://mainnet.infura.io/v3/PROJECT_ID"

PRIVATE_KEY="YOUR METAMASK ACCOUNT PRIVATE KEY REMOVE 0x from string"

ACCOUNT="YOUR METAMASK ETH/BINANCE ACCOUNT ADDRESS REMOVE 0x from string"

This project can be greatly improved. I orginally wrote the code for fun to learn how arbitrage works. I have from time to time been able to sucessfully do arbitrage between exchanges. I have also had many failures and have tweaked to code multiple times to improve the chances of success.

PLEASE US the sushiswap_uniswap_ropsten.js BEFORE using real money on ETH network. I am not responsible for any losses from any transaction you make.

You can use these for arbitrage BUT there are faster and more accurate ways to find arbitrage between exchanges. I will leave that up to you to discover. Here are a couple of links to devs that I learned a lot from. Feel free to ask me a question.

https://github.com/dappuniversity

https://github.com/jklepatch

Extra: A couple of helpful principles to help you understand how price is determined with Uniswap, Pancake pairs etc EthTokens is BinanceCoin on Binance Network

#EthTokens /(#Tokens X EthPrice) = Token Price

#EthTokens / #Tokens = Token per Eth

If you catch the market at the right time and find some great arbs send a few wei my way. 0x2076D4Ad149ce6d682b80efDfDb13fdE2bA0cB7f

defi-arbitrage's People

Contributors

juliansmulian 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.