Skip to content

robaleman/exchange-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CryptoBuddy Bot for Discord

A bot for Discord that provides utilities for cryptocurrency traders. Run it in your Discord server and users can call various commands that fetch current information from crypto-exchanges like Binance, or he can be toggled to send alerts during unusual price action. CryptoBuddy is built in Node.js and uses R to make technical analysis calls.

Bot Setup

First, make sure you have installed the latest versions of Node.js. Clone or download this repository. You will then need to install the following dependencies through NPM. Run:

npm install node-binance-api node-schedule r-script-with-bug-fixes
npm install discord.io

Replace the token in the auth.json with the your own token generated from the app section of your Discord account, as well as replacing the channel ID parameter in the config.json with the ID of the channel that you want the bot to fire alerts. Add the bot to your server.

When you're ready, navigate to this repo and run:

node bot.js

Your bot should be ready to go.

Commands

Here's a list of commands users can use with CryptoBot. Note that all markets must be requested in the form of "FIRST_COIN" + "LAST_COIN", so for example, to check the price of Ethereum-Bitcoin, you would have to input the command !price ETHBTC in the chatroom.

!help provides a list of commands available to the user.

!price <MARKET> returns the current price of a specified market on Binance.

!priceUSD <MARKET> returns the current price of a specified market in US dollars.

!vol <MARKET> returns the current 24-hour volume of a specified market on Binance.

!markets returns the current list of markets available on Binance

!ichi <MARKET> calculates where the Ichimoku cloud is for a given market.

!alert toggles Ichimoku alerts on or off; when on, will ping whenever a market has broken in or through an Ichi cloud on the 15 minute candle

Upcoming Features

Here's the tentative list of upcoming features and updates. They are ordered in progression of upcoming updates.

  • New support for users to calculate with custom parameters and select different time scales.
  • Add more custom indicators such as RSI, Bollinger bands, or Donchian channels.
  • Add in chart support for indicator calls so users are given more details as to how strongly or weakly each indicator registers.

About

exchange bot example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published