Skip to content

quelstriless/LSTM-Transformers-PricePredictionComparison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Transformers vs LSTM for Stock Price Prediction

Overview

Using Long Short-Term Memory (LSTM) and Transformers Models to predict future prices of RUNE/USDT using historical data and technical indicators like SMA, EMA, MACD, and RSI.

Data Source

Binance API for RUNE/USDT data

To learn more about the Binance API and how to create API keys, visit: Binance API Documentation

Installation

  1. Clone the repository:

    git clone https://github.com/quelstriless/LSTM-Crypto-Price-Prediction.git
    cd LSTM-Transformers-PricePredictionComparison
  2. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`

Usage LTSM

  1. Ensure you have your Binance API keys.
  2. Edit the script to include your API keys.
  3. Run the script:
    python LTSM-Model.py

Usage Transformers

  1. Ensure you have your Binance API keys.
  2. Edit the script to include your API keys.
  3. Run the script:
    python Transformers-Model.py

Results

LTSM

LTSM Prediction

Transformers

Transformers Prediction

The above plot shows the predicted future prices of RUNE/USDT.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages