Coder Social home page Coder Social logo

fquiachon / plutus_eye Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 648 KB

Plutus Eye project Is a Global Market prediction web API that aims to improve and automate analysis of the stock market price direction based on available historical data.

Python 100.00%
stock stocks stock-market stocks-api stocks-prices stocks-predictor stocks-volume candlesticks candlesticks-pattern

plutus_eye's Introduction

Plutus Eye

Is a Global Market prediction web API that aims to improve and automate analysis of the stock market price direction based on available historical data.

Alt text

Development

Setup Development environment

  1. Create a python 3.x virtual environment

    $ python3 -m venv env

  2. Activate virtual environment

    $ <project-dir>\env\Scripts\activate

  3. Install the python modules listed in requirements.txt

    • Python Libraries
      • flask==1.1.2
      • flask-jwt-extended==3.25.0
      • flask-pymongo==2.3.0
      • pymongo==3.11.2
      • python-dotenv==0.15.0
      • dnspython==2.0.0
      • pyopenssl==20.0.0
  • Environment Variables on .env file
    • FLASK_APP=plutus_eye
    • FLASK_ENV=development
    • MONGO_URI=mongodb+srv://dbuser:dbpassword@<mongodb-host>/<dbname>?retryWrites=true&w=majority
    • JWT_SECRET_KEY='super-secret'
    • GATEWAY_TOKEN = 'bv1io9f48v6o8DemoX'

Database Setup

See https://cloud.mongodb.com for the instruction

API Endpoints

https://<host>:<port>/<API Endpoints>

User Registration and Login End Points

POST /register 201

Alt text

POST /login 200

Alt text

Global Markets

Ticker End Points

POST /global/tickers 201

Alt text

GET /global/tickers 200

Alt text

DELETE /global/tickers 200

Alt text

Candlestick Patterns End Points

GET /candle/global/string:ticker 200

Alt text

POST /candle/global 201

Alt text

GET /candle/transaction/string:transaction 200

Alt text

DELETE /candle/transaction/string:transaction 200

Alt text

DELETE /candle/transaction/ALL 200

Alt text

High Volume Stock End Point

GET /volume/global/string:ticker 200

Alt text

POST /volume/global 201

Alt text

GET /volume/transaction/string:transaction 200

Alt text

DELETE /volume/transaction/string:transaction 200

Alt text

DELETE /volume/transaction/ALL 200

Alt text

PSE Market Tickers

POST /candle/pse 201

GET /candle/pse/string:ticker 200

GET /candle/transaction/string:transaction 200

DELETE /candle/transaction/string:transaction 200

POST /pse/tickers 201

GET /pse/tickers 200

GET /pse/tickers/default 200

DELETE /pse/tickers 200

Volume

POST /volume/global 201

GET /volume/global/string:ticker 200

GET /volume/transaction/string:transaction 200

DELETE /volume/transaction/string:transaction 200

POST /volume/pse 201

GET /volume/pse/string:ticker 200

GET /volume/transaction/string:transaction 200

DELETE /volume/transaction/string:transaction 200

Execution

  1. Generate cert.pem and key.pem certificates see https://blog.miguelgrinberg.com/post/running-your-flask-application-over-https

    openssl req -x509 -newkey rsa:4096 -nodes -out cert.pem -keyout key.pem -days 365

  2. Run flask app with --cert and --key parameters

    flask run --cert=plutus_eye\cert.pem --key=plutus_eye\key.pem

plutus_eye's People

Contributors

fquiachon avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

plutus_eye's Issues

new

My name is Luis, I'm a big-data machine-learning developer, I'm a fan of your work, and I usually check your updates.

I was afraid that my savings would be eaten by inflation. I have created a powerful tool that based on past technical patterns (volatility, moving averages, statistics, trends, candlesticks, support and resistance, stock index indicators).
All the ones you know (RSI, MACD, STOCH, Bolinger Bands, SMA, DEMARK, Japanese candlesticks, ichimoku, fibonacci, williansR, balance of power, murrey math, etc) and more than 200 others.

The tool creates prediction models of correct trading points (buy signal and sell signal, every stock is good traded in time and direction).
For this I have used big data tools like pandas python, stock market libraries like: tablib, TAcharts ,pandas_ta... For data collection and calculation.
And powerful machine-learning libraries such as: Sklearn.RandomForest , Sklearn.GradientBoosting, XGBoost, Google TensorFlow and Google TensorFlow LSTM.

With the models trained with the selection of the best technical indicators, the tool is able to predict trading points (where to buy, where to sell) and send real-time alerts to Telegram or Mail. The points are calculated based on the learning of the correct trading points of the last 2 years (including the change to bear market after the rate hike).

I think it could be useful to you, to improve, I would like to share it with you, and if you are interested in improving and collaborating I am also willing, and if not file it in the box.

If tou want, Please read the readme , and in case of any problem you can contact me ,
If you are convinced try to install it with the documentation.
https://github.com/Leci37/LecTrade/tree/develop I appreciate the feedback

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.