In addition to @arturhoo's answer , which contains EC2 points
You can get historical prices with the CLI tool
aws ec2 describe-spot-price-history \ --instance-types m1.xlarge \ --product-description "Linux/UNIX (Amazon VPC)" \ --start-time 2016-10-31T03:00:00 \ --end-time 2016-10-31T03:16:00 \ --query 'SpotPriceHistory[*].[Timestamp,SpotPrice]'
which takes the spot price between 3:00am and 3:16am Monday, October 31, 2016 (UTC)
[ [ "2016-10-31T03:06:12.000Z", "0.041500" ], [ "2016-10-31T03:00:26.000Z", "0.041600" ], [ "2016-10-31T02:59:14.000Z", "0.041500" ], [ "2016-10-31T02:00:18.000Z", "0.040600" ], [ "2016-10-30T23:55:06.000Z", "0.043200" ] ]
Alexander McFarlane Oct 31 '16 at 3:28 2016-10-31 03:28
source share