Skip to content

This FastAPI-based API serves as the backend for the Crypto Market Prediction App, utilizing the Prophet forecasting model to deliver accurate cryptocurrency price predictions. It provides robust endpoints for fetching historical data and generating predictions, facilitating seamless integration with front-end applications.

Notifications You must be signed in to change notification settings

tommanzur/crypto-market-prophet-prediction-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Financial Forecasting API

This API allows users to authenticate and retrieve historical data and forecasts for various financial symbols. It uses FastAPI and is designed to be scalable and secure.

Features

  • User authentication for secure access.
  • Rate limiting to prevent abuse.
  • Retrieval of historical financial market data.
  • Generation of financial forecasts using the Prophet library.

Technologies Used

  • FastAPI
  • Prophet for time series forecasting
  • Pydantic for data validation
  • JWT for authentication
  • SlowAPI for request rate limiting

Installation

  1. Clone the repository:
git clone <repository-url>
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the server:
uvicorn main:app --reload

Usage

To use the API, you first need to authenticate to obtain a token, and then you can make requests to retrieve data or forecasts:

Authentication

POST /token

{
"username": "user",
"password": "password"
}

Get Data

GET /api/data/{symbol}/{years}

Get Forecast

GET /api/forecast/{symbol}/{years}/{forecast_years}

Contributing

To contribute to the project, please send a pull request or open an issue to discuss proposed changes.

About

This FastAPI-based API serves as the backend for the Crypto Market Prediction App, utilizing the Prophet forecasting model to deliver accurate cryptocurrency price predictions. It provides robust endpoints for fetching historical data and generating predictions, facilitating seamless integration with front-end applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages