GithubHelp home page GithubHelp logo

financial-modeling-api's Introduction

Financial Modeling API

Project Description

The Financial Modeling API is designed to automate the extraction of financial ratios for the stock symbol 'AAPL' from an external API, store the data in a PostgreSQL database, and use it to train a regression model. This system uses a Flask API to trigger model training upon a GET request and outputs a 'completed' response once the process is finished. The aim is to predict stock prices using financial ratios as features.

Installation

  1. Clone the repository: git clone https://github.com/shubhammachal/financial_modeling_api.git
  2. Set up a virtual environment:
    python -m venv venv
    source venv/bin/activate

Usage

ratios_api.py

This script is used to fetch financial ratios from financial modeling prep api and store them in the database.

db_query.py

This script fetches the stored data, constructs a DataFrame, and saves the data in data.csv file.

app.py

This script sets up the Flask API, and should be kept running to listen for GET requests to trigger model training. It uses data from data.csv file, train a regression model to predict stock prices and evaluate the model using R square and RMSE value.

Contributing

Contributions are welcome! For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License.

Exploring Language Model Pipelines for Stock Forecasting

This script uses traditional Machine Learning i.e. regression to predict the stock prices. However, language model pipelines, such as those provided by OpenAI, offer an innovative alternative. These models can be trained on large datasets of textual information (e.g., news articles, financial reports) to capture nuances and sentiments that might impact stock prices. Unlike traditional models that directly map features to outputs, language models can generate intermediate representations, which can then be decoded into predictions. This approach allows for a more flexible and nuanced understanding of how various factors might influence stock movements.

For more information, feel free to check out https://site.financialmodelingprep.com/developer/docs.

financial-modeling-api's People

Contributors

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