Client for AWS EC2 spot price data

Use this client code to obtain historical AWS EC2 spot price data. Includes an example of how to use the client.
Updated 4 May 2019

View License

Gain better understanding of the EC2 pricing by analyzing spot price history. This code connects to the API available at and downloads the available historical EC2 price data.

I have also included an example of how to use the data to plot and compare EC2 spot prices across different availability zones and different instance types.

Cite As

Adam Ivansky (2024). Client for AWS EC2 spot price data (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Data Preprocessing in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes