A simple Alexa skill that reads stock quotes for a predefined list of ticker symbols. The skill is written in Python and runs on AWS Lambda.
For more information on how to setup your AWS Lambda function and Alexa Skill, visit my blog post.
-
Clone this repository
git clone https://github.com/ewenchou/alexa-stock-quotes.git
-
Customize the
TICKERS
andAPP_ID
variables inlambda_function.py
-
Install requirements in local directory:
pip install -r requirements.txt -t .
-
Create a zip file with the following contents:
googlefinance googlefinance-<version>.dist-info lambda_function.py
-
Configure your Alexa skill in the Amazon developer portal.
-
Test the skill by launching it with your invocation name. For example, "Alexa, open Stock Report".
There is a simple test script that you can run after you've done Steps 1 to 3 above.
python test.py
Note: Tested using Python 2.7.12 on Ubuntu and googlefinance
version 0.7