Code Monkey home page Code Monkey logo

dipper's Introduction

Dipper

Simple Polygon Paraswap stables arbitrage bot.

Methodology

Parswap is a swap aggregator with support for polygon network. The logic employed in this bot is that each coin added is roughly the same price. When,for example, 1 USDC can be purchased for less than 1 USDT and the bot is also holding USDT, it will attempt to buy USDC. Later when USDT or DAI is worth less than 1 USDC, the bot will sell the USDC to buy them. This bot is also assisted by aave market to ensure that even while no trades are occuring the capital is still at work. In my experience this bot works to provide oustanding yields for amounts less than $10K USD.

Confirguation

Create a file in the root directory called '.env', generate a private key for the polygon network and put it into the .env file with the rpc provider as follows.

PROVIDER_URL='https://polygon-rpc.com/'
PRIVATE_KEY='0xYOUR_KEY'

Getting started

In order to get started you must manually approve each coin you've selected in paraswap using Metamask. Once you've set your approval for Paraswap to use the bot's erc20 funds, as well as configured all the other parameters, you may start the app with

node app.js

This will generate a verbose log into the console, as well as append to the pricelog.csv file. The pricelog is used by the chart.html to render a chart of each attempted trade. Once some data has been collected you can open chart.html in a browser to get an idea of price action of the coins you've selected.

Chart.html

dipper's People

Contributors

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