Coder Social home page Coder Social logo

joancefet / trading-analysis-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vietmazze/trading-analysis-bot

0.0 0.0 0.0 2.46 MB

Telegram chatbot for data-driven analytics of crypto-market with technical indicators, social sentiment, developer activities and metrics related to crossed-network on-chain transactions

Home Page: https://t.me/trading_analysis_bot

License: MIT License

Python 100.00%

trading-analysis-bot's Introduction

Trading Analysis Bot

License

Trading Analysis Bot is a Telegram chatbot for data-driven analytics of cryptocurrencies market, particularly the Binance exchange. It provides standard technical indicators, social sentiment and developer activities. Market indexes, rankings and statistic metrics based on on-chain transactions across different blockchain networks are also reported.

Requirements

  • Telegram library: python-telegram-bot
  • Exchange library: python-binance
  • Computational libraries: numpy, TA-lib
  • Visualization library: matplotlib
  • Database library: psycopg2

Features

  • Technical indicators: RSI, MA, BB, etc
  • Order flow: Buy vs sell, Volume profile, Limit orderbook
  • Cryptoasset indexes: Bletchley, Bitwise, CRIX
  • Cryptoasset metrics: TX vol, NVT ratio, No. active addresses, No. transactions
  • Social sentiment and developer activities: Twitter, Reddit, Facebook, GitHub
  • Trading sessions
  • Customized notifications
  • Administrator and user management

Run on local machine

pip install -r requirements.txt
pip install TA-lib
# For Windows
set TELEGRAM_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 
set SECRET_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 
set API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
set DB_NAME=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
set DB_USERNAME=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
set DB_HOST=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
set DB_PASSWORD=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
set ADMIN_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
set ADMIN_USERNAME=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
python bot.py
# For Linux
export TELEGRAM_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 
export SECRET_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 
export API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
export DB_NAME=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
export DB_USERNAME=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
export DB_HOST=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
export DB_PASSWORD=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
export ADMIN_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
export ADMIN_USERNAME=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
python bot.py

Deployment on Heroku platform

heroku create trading-analysis-bot --buildpack heroku/python
heroku buildpacks:add --index 2 https://github.com/numrut/heroku-buildpack-python-talib
heroku config:set TELEGRAM_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
heroku config:set SECRET_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
heroku config:set API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
heroku config:set DB_NAME=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
heroku config:set DB_USERNAME=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
heroku config:set DB_HOST=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
heroku config:set DB_PASSWORD=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
heroku config:set ADMIN_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
heroku config:set ADMIN_USERNAME=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
git push heroku master
heroku ps:scale bot=1 

Screenshots

General information

/i zrx
Symbol: ZRX Name: 0x
Community (Reddit, Facebook, Twitter)
- Facebook likes: 1240
- Reddit average comments 48h: 2.5
- Reddit accounts active 48h: 2898
- Twitter followers: 134515
- Reddit subscribers: 13784
- Reddit average posts 48h: 0.417
Developer (Github)
- Forks: 199
- Commit count 4 weeks: 519
- Closed issues: 114
- Pull requests merged: 567
- Subscribers: 86
- Stars: 785
- Pull request contributors: 33
- Total issues: 146

Transactions statistics

/t zrx 1
#ZRXBTC: 0.0001138
Transactions statistics (Last 500 trades)
From 2018-08-17 00:15:34 to 2018-08-17 00:40:52 (UTC)
~ 0$: Buy 35 vs Sell 10
~ 1-10$: Buy 22 vs Sell 22
> 100$: Buy 105 vs Sell 122
> 200$: Buy 77 vs Sell 79
> 500$: Buy 32 vs Sell 25
> 1,000$: Buy 13 vs Sell 15
> 2,000$: Buy 9 vs Sell 11
> 5,000$: Buy 1 vs Sell 6
> 10,000$: Buy 1 vs Sell 1
Total: Buy 261 (85,760$) vs Sell 239 (121,247$)

Order flow

/a zrx

Cryptoasset indexes

/m

Trading sessions

/h

Licence

MIT

Support and Donation

trading-analysis-bot's People

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.