Skip to content

Usman75/Lazy-trader-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lazy-trader-bot

Lazy-trader-bot is a NodeJS Console based application that fetches ETH/USD price every second using a Chainlink reference data contract. Auto Swap the ETH to DAI when the ETH price falls below to predefined ETH/USD price.

VideoDemo

https://youtu.be/coTeSF2PjAU

Demo

Demo

How to Run:

  1. Clone the repositorie git clone https://github.com/Usman75/Lazy-trader-bot.git
  2. cd Lazy-trader-bot
  3. Create a new file and name it .env
  4. Past the following code:
RPC_URL="https://ropsten.infura.io/v3/YOUR_API_KEY"
INFURA_API_KEY="YOUR _INFURA_API_KEY"
PRIVATE_KEY="0x..."
ACCOUNT="0x..."
  1. npm install
  2. truffle compile
  3. truffle migrate --network ropsten
  4. npm run start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published