Code Monkey home page Code Monkey logo

hasami's Introduction

Hasami

Hasami is a discord bot that monitors bittrex and binance exchanges for significant changes in price / significant RSI values and prints it out in a specified channel.

Usage

For basic personal use you need to set "token" to your personal bot's token, and "update_channel" to the channel the bot should print updates to in config.json

"token": "your token",
"update_channel": "your channel id",

Commands

Command Description
$start Starts checking the markets for price/rsi updates
$stop Stops checking the markets for price/rsi updates
$exit Shuts down the bot.
$greet Greets whoever wants to be greeted.

Requirements

Configuration

All configuration takes place within config.json

{
	"token": "your token",
	"update_channel": "your channel id",
	"free_fall": -4,
	"mooning": 4,
	"rsi_tick_interval": "thirtyMin",
	"rsi_time_frame": 14, 
	"over_bought": 75,
	"over_sold": 25,
	"update_interval": 1,
	"debug": 0
}
Option Description
token The bot's token to use to create connection with discord
update_channel The channel the bot will print updates to
free_fall Low value to flag market for printing (Price Change)
mooning High value to flag market for printing (Price Change)
rsi_tick_interval Interval between each tick used to calculate (RSI) Options: "oneMin", "fiveMin", "thirtyMin", "hour", "day".
rsi_time_frame Number of ticks to use to calculate (RSI)
over_bought Over bought value to flag market for printing (RSI)
over_sold Over sold value to flag market for printing (RSI)
update_interval Delay between each time it checks the markets (in minutes)
debug Whether in debug mode or not. Increases info logged.

What it's doing

When a market's growth/decline is greater than or equal to mooning or free_fall, the bot flags it and prints an update according to this format.

<market_name> changed by <change> on <exchange>

When a market's rsi value is greater than or equal to over_bought or over_sold, the bot flags it and prints an update according to this format.

<market_name> RSI: <rsi>

TODO

  1. Price display under playing on bot.
  2. Improved discord printing.
  3. Support for more exchanges.
  4. Move to v2.0 of bittrex api.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.