Skip to content
ChaosDEX trading bot
TypeScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
patches
src
.gitignore
LICENSE
Procfile
README.md
package.json
preview.png
tsconfig.json
tslint.json
yarn.lock

README.md

📈 chaosdex-trading-bot

ChaosDEX trading bot built with RenJS.

Running locally

Clone the repo, install the dependencies and generate a new private key:

git clone git@github.com:renproject/chaosdex-trading-bot.git
cd ./chaosdex-trading-bot
npm install
echo 'console.log(`PRIVATE_KEY="${require("send-crypto").newPrivateKey()}"`)' | node >> .env

Add to the .env file:

INFURA_KEY="" # Generated at infura.io
NETWORK="chaosnet"
DATABASE_URL="" # OPTIONAL - Postgres database for persistance

and then run:

yarn start

Screenshot

Preview

Development

See chaosdex/execute.ts for how chaosdex-trading-bot uses RenJS to mint and burn Bitcoin, Bitcoin Cash and Zcash onto Ethereum.

There are two main components, 1) the tactic for deciding on trades and 2) the interface to the trading platform:

  1. There's 1 tactic, a simple tactic that performs any trade that is currently profitable.
  2. There's 1 interface, which executes trades on ChaosDEX.
You can’t perform that action at this time.