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.
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
Social
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.