Skip to main content

Python client to access crypto sentiment

Project description

Cortecs - Crypto Sentiment

Cortecs gathers crypto headlines from twitter, reddit and online news to extracts the social sentiment of cryptocurrencies. The objective is to deliver denoised sentiment metrics in realtime. Therefore, each headline is efficiently analyzed in a filter engine to assure the data meets certain quality criteria (see Cortecs Feed) before the actual sentiment is calculated. Most modules in the filter engine are built on top of Transfomers.

SNAP

API

PyCortecs is a python wrapper for the CortecsApi, which provides multiple sentiment metrics:

  • sentiment
  • social volume
  • social dominance
  • social balance

Currently 86 of the most important cryptos are supported. Twitter sentiment dates back until 2019-11-01. News and reddit sentiment was added later on.

Example

Install with pip install pycortecs.

from pycortecs import CortecsApi
from pprint import pprint

api = CortecsApi()
## Get Bitcoin sentiment from Twitter
sentiment_twitter_btc = api.get_twitter_sentiment(since="2021-03-01",
                                                  until="2021-03-05",
                                                  asset='btc',
                                                  interval='1d')
pprint(sentiment_twitter_btc)
                          interval endpoint     signal      btc
timestamp                                                      
2021-03-02 00:00:00+00:00       1d  twitter  sentiment  0.80919
2021-03-03 00:00:00+00:00       1d  twitter  sentiment  0.82196
2021-03-04 00:00:00+00:00       1d  twitter  sentiment  0.83813
2021-03-05 00:00:00+00:00       1d  twitter  sentiment  0.81766

For detailed usage checkout the docs or look into the examples folder.

Supported by

University of Vienna Techhouse

Social

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

pycortecs-0.1.5.tar.gz (8.3 kB view hashes)

Uploaded Source

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