Skip to content
프로젝트

소개

Analyzing social media sentiment and its impact on stock market

비즈니스 및 금융

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

tsignal

Analyzing social media sentiment and its impact on stock market

Personal project, does not represent Google

tsignal topology

This Go app deploys into GKE, subscribes to Twitter stream for all companies defined in the Stocks table in Cloud Spanner and scores each event against the Google NLP API while comparing the user sentiment against the stock ask price against Yahoo API.

Eventually there will be a UI, for now, there are sample SQL scripts you can use to execute against the Cloud Spanner DB to analyze the data.

sample query

All GCP services used in this example can be run under the GCP Free Tier plan. More more information see https://cloud.google.com/free/

Configuration

Edit the scripts/config.sh file with your Twitter API info. Alternatively define the following environment variables. Instructions how to configure your Twitter API access codes are found here:

# export T_CONSUMER_KEY=""
# export T_CONSUMER_SECRET=""
# export T_ACCESS_TOKEN=""
# export T_ACCESS_SECRET=""

Run

Once all the necessary environment variables are defined you can execute the tsignal appl locally go run *.go or use the included Dockerfile to create an image which you can then publish to the GCP (if needed, there is a script build-publish that will do all that for you.

Cleanup

The cleanup of all the resources created in this application can be accomplished by executing the scripts/cleanup.sh script.

TODO

  • Tests, yes please
  • UI for reports and config
  • Way to subscribe to non-NASDAQ stock prices

관련 프로젝트 살펴보기

불러오는 중…