Giter VIP home page Giter VIP logo

stock-market-4's Introduction

Stock market

Set of APIs for stocks research and portfolio backtesting. Unauthenticated users have limited access to APIs. Authentication implemented using JWT.

Local deployment

Requirements:

Install steps:

  1. Install Python3.6 + pip

    1. sudo apt-get update
    2. sudo apt-get install python3.6
    3. python3.6 --version
    4. sudo apt install python3-pip
    5. pip3 --version
  2. Install requirements.txt (from src)

    1. pip3 install -r requirements.txt
  3. Install docker and docker-compose

    1. https://docs.docker.com/engine/install/ubuntu/
    2. https://docs.docker.com/compose/install/
  4. Create .env file following .env_template (default FLASK_SECRET=thisissecret)

  5. Update docker-compose.yml volume mappings (set project path on local pc)

  6. Start elasticsearch (from src)

    1. docker-compose up elasticsearch
  7. Start kibana (from src)

    1. docker-compose up kibana
  8. Download datasets from https://mega.nz/folder/kchWnKaZ#oQSQyIU4QxGBSVmEjsLaTQ

    1. save files to stock-market/data
  9. Import datasets (from src, with project root set to src)

    1. python3.6 scripts/init_es_database/main.py
    2. python3.6 scripts/populate_es_database/main.py
  10. Start webserver

    1. docker-compose up --build webserver
  11. APIs available at http://localhost:5000

    1. Test admin/user credentials - admin:admin | user:user (log-in)
    2. Returned JWT (x-access-token apiKey) must be set in order to be able to use all APIs

stock-market-4's People

Contributors

szabocristian 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.