Skip to content

For our lovely DS team members. They think. They do math. They make algorithms. The rest is a mystery. But they do send parsable JSON data, and for that we are grateful.

License

Notifications You must be signed in to change notification settings

lambda-stockly/build-stockly-DS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build-stockly-DS

Lambda School Data Scientists

@Ruwai 'Chris L.'

@derek-shing 'Derek S.'

TODOs:

  • Clean up repo
  • update repo with app.py
  • install dependencies to pipenv
  • commit changes to heroku
  • deleted Pipfile, install dependencies via requirements.txt

pip install requirements.txt

Historical/Future Usage

from preprocess import Magic

# insert stock ticker to instantiate Historical object.

tesla = Magic('TSLA')

# two endpoint methods that return a dictionary of softmax scores in format:
# {'Sell': 0.25, 'Hold': 0.5, 'Buy': 0.25}

# first method :output_historical:

historical = tesla.output_historical()
print(historical)

# second method :output_future:

future = tesla.output_future()
print(future)

TwitterSentiment Usage

from sentiment import TwitterSentiment

# same as above

tesla = TwitterSentiment('TSLA')

twitter_sentiment = tesla.output_twitter()
print(twitter_sentiment)

# should display :
# {'Sell': 0.1, 'Hold': 0.3, 'Buy': 0.6}

About

For our lovely DS team members. They think. They do math. They make algorithms. The rest is a mystery. But they do send parsable JSON data, and for that we are grateful.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages