0.1.1 • Published 7 years ago

tsukibot v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

TsukiBot 🌑

Discord bot with cryptocurrency functionalities

Crypto trading is an unfriendly task. May this aid you in your journey to Woyakland.

Features

  • Get the volume for buy and sell orders.
  • Check prices from various exchanges in real time.
  • Fetch volume data on selected pairs.

Usage

Command Table

Command NameCommand CallOptionsShortcuts
Krakenk or krknXXX, YYY, base price.tbk, .tbk eur, .tbk btc
GDAXg or gdaxXXX, YYY, base price.tbg, .tbg eur, .tbg btc
Poloniexp or poloXXX, YYY.tbp
CryptoComparec or crcpXXX YYY ... ZZZn.a.
Bittrexb or bitXXX, YYY.tbb
Etherscane or escanhex addressn.a.
Personal Arrayspato set: XXX ... ZZZ.tbpa
Help.help or .thn.a.n.a.

YYY defaults to the main fiat pair. Usually USD or USDT.

If a base price is provided, the result will return the percent change from that price to the current one.

Available Tickers

ETH, ETHX, ETC, EOS, GNT, XRP, LTC, BTC, XBT, MLN, ICN, STEEM, USDT

This may change on later versions.

Available Volume Records

ETH, GNT, LTC, ETHX

ETHX is the custom ticker to fetch the volume record of ETHUSDT.

ETH tips to: 0x6A0D0eBf1e532840baf224E1bD6A1d4489D5D78d

Installation

Use npm

(Not fully tested.)

npm install tsukibot

Depends:

  • python 2.7.x
  • node.js >= 6.0.0
  • python-shell
  • Naked
  • discord.js

Clone the repo.

git clone https://github.com/OFRBG/TsukiBot.git
cd TsukiBot
mkdir common

Install the dependencies.

npm install

Create a virtualenv for the project.

virtualenv TsukiBot
source TsukiBot/bin/activate

Install python dependencies.

pip install psycopg2 pandas Naked

Create a keys file.

nano keys.api

Inside keys.api add the following JSON substituting with your keys.

{
  "polo": [
    "poloniex short key",
    "poloniex long key"
  ],
  "discord": "discord token (long with mixed chars)",
  "bittrex" : [
    "bittrex short key",
    "bittrex long key"
  ],
  "coinbase" : [
    "coinbase short key",
    "coinbase long key"
  ],
  "etherscan" : "api key"
}

Execution

To run the main bot:

node bot.js

Also recommended: use pm2 to keep the bot running.