Skip to main content

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!")

Supported tokens

for token in crypto.supported():
    print(token)

Actual Price Returns the actual cryptocurrency price

price = crypto.price("bitcoin")

Weighted Average Returns the periodic WAVGs

# days = 1, 3, 7, 15, 30, 60, 90
wavg = crypto.wavg("bitcoin", 3)

Request Requests for next-day prediction.

crypto.request("bitcoin")

Prediction Returns the available next-day prediction.

    tomorrow = crypto.tomorrow("bitcoin")
    if tomorrow > 0:
        print(f" - Tomorrow: {tomorrow:,.2f} USD")

Distance Returns the historical distance between the atcual price and predictions.

gap = crypto.distance("bitcoin")
if gap > 0:
    print(f" - Distance: {gap:,.6f}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shameni-1.1.0.tar.gz (7.0 kB view hashes)

Uploaded Source

Built Distribution

shameni-1.1.0-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page