/core

ITF Market Analysis and Signal Services

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Waffle.io - Columns and their card count

ITT Core Services

API

/api/v2/...

Environment Setup

  1. Install Prerequisites
  • python3.6
  • pip
  • virtualenv
  • virtualenvwrapper
  • run commands to create virtual env
    $ mkvirtualenv --python=/usr/local/bin/python3 ITF`
    $ workon ITF
    
  1. Clone and setup Django env
  1. Local Env Settings
  • make a copy of settings/local_settings_template.py and save as settings/local_settings.py
  • add private keys and passwords as needed
  1. Connect to Database
  • install PostgreSQL server and create local database
  • run $ python manage.py migrate to setup schemas in local database
  • AND/OR
  • connect to read-only Amazon Aurora DB
  • set database connection settings in your settings/local_settings.py
  1. Run Local Server
  1. Run Worker Services
  • $ python manage.py trawl_poloniex
  • ...
  1. Query DB in Shell
  • $ python manage.py shell

    > from apps.indicator.models import Price
    > eth_price = Price.objects.filter(currency="ETH").order_by('-timestamp').first()
    > print(eth_price.satoshis)