Demonstration of using AWS Lambda, AppSync, and DynamoDB for an algorithmic trading system demonstration. Using the Serverless Framework here to provision the solution in AWS.
I wrote a blog series around this experiment:
- nvm: [https://github.com/creationix/nvm]
- yarn: [https://yarnpkg.com/lang/en/docs/install/#debian-stable]
- pyenv: [https://github.com/pyenv/pyenv]
This project expects you to be using nvm
for managing your Node.js runtimes.
nvm use
# If the correct Node.js runtime is not setup...
nvm install $(cat .nvmrc)
yarn install
This project expects you to be using pyenv
for managing your Python runtimes.
pyenv install 3.7.2
pyenv local 3.7.2
pip install virtualenvwrapper
mkvirtualenv InvestGuruPrototype1
workon InvestGuruPrototype1
This solution uses the Alpha Vantage APIs for investment data and analytics.
A free API key can be obtained from Alpha Vantage by filling out
this form. Copy the generated API key
and paste it into a text file named .alphavantage
in the root directory of this experiment project
(not the root of the git repository). I have added an entry to the .gitignore
file to exclude this
hidden file from being version controlled.
-
Create an InvestGuruAdmin IAM user with admin privileges. Copy the Access Key ID and Secret Access Key for the next step.
-
Create the
InvestGuruAdmin
named profile in your AWS credentials file (~/.aws/credentials
) with the associated Access Key ID and Secret Access Key. -
Deploy solution to AWS...
yarn deploy-dev
Once you have finished tinkering with the solution in our AWS environment, you can conveniently remove it from your AWS environment:
```bash
yarn undeploy-dev
```