Giter VIP home page Giter VIP logo

cryto-trader-1's Introduction

Crypto Trader

Setting up the local database:

  1. Make sure postgresql is installed
  2. Start the postgres local server via pg_ctl -D /usr/local/var/postgres start on mac
  3. Start the postgres shell: psql -U postgres
  4. Create the database. Looks like this for now:

Generic Price Data Table DLL

CREATE TABLE bitcoin_price_data (
    day_volume numeric,
    price numeric,
    market_cap numeric,
    time_stamp timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);

Generic Indicator Data Table DLL

MADE ALL VALUES NUMERIC AS TIME_STAMP WILL VARY ACCORDING TO EACH VALUE

CREATE TABLE bitcoin_indicators (
	time_stamp_1 numeric,
    sma_1 numeric,
    time_stamp_5 numeric,
    sma_5 numeric,
    time_stamp_10 numeric,
    sma_10 numeric,
    time_stamp_30 numeric,
    sma_30 numeric,
    time_stamp_60 numeric,
    sma_60 numeric,
    time_stamp_180 numeric,
 	sma_180 numeric,
	time_stamp_360 numeric,
	sma_360 numeric,
	time_stamp_720 numeric,
	sma_720 numeric,
	time_stamp_1440 numeric,
	sma_1440 numeric
);

To run insertion script (for now at least):

  1. Go to the DataBase dir
  2. Run python PriceDataHandler.py then run python IndicatorDataWriter.py to ensure that table properly updates

If db is set up correctly, this script should work. If it doesn't your table might not be setup correctly.

cryto-trader-1's People

Contributors

epociask avatar adrain-cb avatar

Stargazers

 avatar

Watchers

James Cloos 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.