0.1.1 • Published 7 years ago
tsukibot v0.1.1
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 Name | Command Call | Options | Shortcuts |
---|---|---|---|
Kraken | k or krkn | XXX , YYY , base price | .tbk , .tbk eur , .tbk btc |
GDAX | g or gdax | XXX , YYY , base price | .tbg , .tbg eur , .tbg btc |
Poloniex | p or polo | XXX , YYY | .tbp |
CryptoCompare | c or crcp | XXX YYY ... ZZZ | n.a. |
Bittrex | b or bit | XXX , YYY | .tbb |
Etherscan | e or escan | hex address | n.a. |
Personal Arrays | pa | to set: XXX ... ZZZ | .tbpa |
Help | .help or .th | n.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.