Skip to content
/ Prydict Public template

Python program that analyzes Bitcoin transaction fees over time and predicts optimal times for low fees using historical patterns

License

Notifications You must be signed in to change notification settings

kpodosky/Prydict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This program:

Data Collection: Fetches historical transaction fee data from Blockchain.com API
Feature Engineering: Creates time-based features and rolling averages
Machine Learning: Uses Random Forest regression to predict fees
Visualization: Plots historical fee data
Prediction: Estimates fees for specific times and categorizes them as Low/Medium/High

Key features:

Uses multiple time-based features (hour, day of week, etc.)
Includes 24-hour rolling average for context
Categorizes predictions based on historical percentiles
Provides visual representation of fee patterns
Calculates model accuracy using MAE

To use:

Install required packages: pip install pandas numpy scikit-learn matplotlib requests
Run the script
The program will:

    Download 60 days of historical data

    Train a prediction model

    Show a fee history chart

    Predict fees for 6 hours in the future

About

Python program that analyzes Bitcoin transaction fees over time and predicts optimal times for low fees using historical patterns

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published