Giter Club home page Giter Club logo

crypto_predict's Introduction

crytpo_predict

Predicts price trends for cryptocurrencies. This repo is pretty messy. It also scrapes bittrex and poloniex data.

get started

Install requirements:

pip install -r requirements.txt

(I have to do sudo pip3 install -r requirements.txt)

Also need to install async wrapper from here: https://github.com/absortium/poloniex-api no pip package as of now.

making the PSQL database

First make sure postgresql is installed. Then do sudo su postgres to enter a shell as the postgres user. Then do psql to enter the postgresql interface. Next create a user: CREATE USER nate WITH SUPERUSER CREATEDB PASSWORD 'testing123'; https://stackoverflow.com/a/15008311/4549682 https://www.postgresql.org/docs/9.5/static/sql-createuser.html If you don't get the permissions fully correct, you can go back and alter the user: https://www.postgresql.org/docs/9.5/static/sql-alteruser.html The semicolons at the end are required; otherwise it won't work.

accessing postgresql database

sudo -u postgres psql postgres or sudo -u postgres psql nate (username is last string) \l lists tables \c bittrex connects to bittrex database SELECT * from bittrex LIMIT 1; -- gets one entry SELECT count(*) from bittrex; -- gets number of entries in table

daily scraping

Poloniex

Probably best not to use cron actually, because when the computer shuts down, the files can get corrupted. Instead, should write a script that will start the scraping in tmux, so it can be stopped in a controlled fashion before rebooting.

To scrape poloniex daily, add this to crontab (crontab -e): (min hr day month weekday file)

*/10 * * * * /usr/bin/python3 /home/nate/github/crypto_predict_latest/crypto_predict/code/poloniex/scrape_polo.py >> /home/nate/github/crypto_predict_latest/crypto_predict/polo_scrape_log.log

This will run every 10 minutes. Be sure to change the home directory if needed.

todo

  • put try: except in continuous scrapes in scrape_bittrex.py
  • try to debug error if it happens again in continuous scrapes
  • port neural net model to data here
  • look for order book correlations to price movement
  • neural net with order book and price/vol history

installing TA-Lib

first you need to install ta-lib: https://sourceforge.net/projects/ta-lib/files/ta-lib/ may need some dependencies on Ubuntu: https://stackoverflow.com/questions/26053982/error-setup-script-exited-with-error-command-x86-64-linux-gnu-gcc-failed-wit

crypto_predict's People

Contributors

nategeorge avatar

Watchers

 avatar

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.