The official Python wrapper for Presage, a straightforward cryptocurrency prediction service.
Project description
shameni
The official Presage Python wrapper, a straightforward cryptocurrency prediction service.
Powered by CoinGecko and Presage API.
DISCLAIMER: All data generated by Presage and/or Shameni does not indicate real cryptocurrency prices and does not constitute to an expert financial advice. Do your own research and only take financial advice from a certified financial expert. This website and the information contained herein is not intended to be a source of any financial advice with respect to the material presented, and the information and/or documents contained in this website do not constitute investment advice.
Usage
Installation
pip install --upgrade shameni
Import Package
from shameni import Gaze
Initialization
# simple initialization
crypto = Gaze()
# cache data to file
crypto = Gaze("predictions.json")
Check connection
if crypto.ping():
print("Live!")
Prediction
# get supported cryptocurrency list
coins = crypto.supported()
for coin in coins:
print(coin)
# predict next day prediction
prediction = crypto.tomorrow("bitcoin")
# get today's prediction
prediction = crypto.today("bitcoin")
Historical Data Up to seven days of historical predictions
history = crypto.historical("bitcoin")
for date, price in history.items():
print(f"{date}: {price:,.2f} USD")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.