The second article in a series of ways to build an AWS lambda for a specific use case. This article focuses on algorithmic trading using the Alpaca API, AWS Lambda, SNS text message, and EventBridge.

Photo by Alain Pham on Unsplash

Introduction

Last month I published an article that provided a step-by-step explanation of how to create an AWS Lambda on a container image, specifically for data science use cases. I would like to expound on that article by leveraging the Alpaca API so that data science models can be used to trade stocks. I will also make the use of two other AWS services, SNS for text messages and EventBridge to trigger the lambda on a recurring schedule. Let’s get started.

Step 1: Create an Account with Alpaca API

Alpaca is a commission-free* brokerage platform that allows users to trade via an API. Once you have created an account…


A step-by-step walkthrough of how to build an AWS Lambda on top of a docker container image that is stored in the cloud — removing the previous 250 MB limit for code/dependencies.

Co-authored with Isaac Rhea and Cody Crofoot

On Dec 1st, the CEO of AWS, Andy Jassy, made an announcement at the annual re:Invent conference to support lambdas built on container images. This was one of the many announcements made at the conference, see the list here.

Photo by Hello I'm Nik 🎞 on Unsplash

This new feature makes it very convenient to build lambda-based applications using any and all existing container development workflows, as mentioned in the announcement. Another key benefit is the increase in the deployment package size of 250 MB for the code/dependencies and 50 MB for the function to 10 GB or 10000 MB. …


Learn step-by-step how to build a trading bot using python, Alpaca API, Google Cloud Platform, and email notifications.

The purpose of this article is to provide a step-by-step process of how to automate one's algorithmic trading strategies using Alpaca, Python, and Google Cloud. This example utilizes the strategy of pairs trading. Please reference the following GitHub Repo to access the Python script.

Step 1: Create accounts for Alpaca and Google Cloud Platform


A simple and modern way to save $10,000 by the time your child turns 18 using three tools. Marcus (high yield savings), Robinhood (stocks/bonds), Gemini (crypto), with close to $0 management fees and all automated.

Photo by Benjamin Davies on Unsplash

Introduction

As my wife and I welcomed our second child to the world this month, we continued an ongoing discussion on how we would like to invest for our kids. Being Millennials, we have enjoyed easy access to investing with tools such as Robinhood. When we had our first child two years ago, we started saving around $50 dollars each month and invested it into a long-term stock. Since then, we have learned a thing or two and have been talking about changing our strategy a little. The purpose of this article is to walk through our thought process.

Our Strategy

With any…


An introduction to CI/CD Pipelines in Azure DevOps to automate the build process for an AWS Lambda that has been built using a docker container.

Photo by Jean-Philippe Delberghe on Unsplash

Introduction

My most recent articles have focused on a fairly new capability within AWS to build an AWS Lambda via a container image.


If you were tasked to speak with the world for 10 minutes, what would you say?

Photo by Ilyass SEDDOUG on Unsplash

A global pandemic, civil/social/political unrest, fires, hurricanes, typhoons, and earthquakes. The year 2020 has been full of difficulties; however, it is incredible to think about the fact that every human on earth has been impacted by at least one item on this list. Each of us has the ability to create our own narrative around these events. Now, what if you were asked to share your thoughts with the world? What would you say? Where would you begin? How would you address these hard topics and issues?

On November 20th, 2020, a unique individual courageously shared his thoughts. President Russell…


How to leverage free analyst data from the WeBull API with Python. Get a snapshot of 6000 stocks in under an hour with only 5 steps.

Analyst Price Target for AMZN from WeBull — 10/17/2020

A myriad of options are available to trade, analyze and learn about stocks. Robinhood is one of the more popular platforms that has removed many barriers to entry when it comes to trading stocks. However, in the past few months I have slowly grown to prefer WeBull over Robinhood. My reasoning is based on the massive amounts of data that WeBull has gathered and organized. The mobile app is clean and easy to use. In addition, they also have a web-based version that is pretty powerful. …


Access personal transaction history from all types of accounts — checking, savings, credit cards and more from the Mint API. A great alternative to Microsoft 365 “Money in Excel”.

Photo by StellrWeb on Unsplash

Wouldn’t it be nice to view all of your personal accounts in one place — checking, savings, credit cards, and debit cards. Mint by Intuit provides a decent solution that allows individuals to connect to their banks/accounts via their platform. The platform allows users to set budgets, keep track of when bills are due, and view transaction history. It syncs automatically with your accounts and provides a good personal financial snapshot.


How to backtest, optimize, and automate your trading strategy using Blueshift integrated with Alpaca’s API.

Co-authored with Isaac Rhea

Photo by M. B. M. on Unsplash

Algorithmic trading is becoming more accessible with cheaper computational resources and increasingly widespread knowledge of computer programming. Anyone that has a desire to automate their trading strategies can now do so at a marginal cost. This article focuses on a variety of tools that are continuously making the process to write, optimize and automate your trading strategy fairly easy. More particularly, the focus will be on two tools — Blueshift by QuantInsti and the Alpaca API for stock trading that is commission free. …


Understanding the tools that exist and that will be created for moving bytes rather than atoms. These tools will make it possible for you to work from wherever you would like.

“It is a lot easier to move bytes around than to move atoms around.” — Mark Zuckerberg

Photo by Austin Distel on Unsplash

At Silicon Slopes in Salt Lake City, Utah, one of the largest tech events of the year, Mark Zuckerberg talked about the future of working remotely. He talked about how it makes more sense today to move bytes rather than atoms. Cloud infrastructure paired with increasing internet speeds/4G and 5G is much more efficient than braving the daily commute in the Bay Area or New York City. …

McKlayne Marshall

Learn | Build | Elevate

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store