diff --git a/eqx-market-spot-history b/eqx-market-spot-history new file mode 100755 index 0000000..86b6998 --- /dev/null +++ b/eqx-market-spot-history @@ -0,0 +1,18 @@ +#!/bin/bash +# eqx-market-spot-history + + +# curl -X GET -H 'X-Auth-Token: ' https://api.equinix.com/metal/v1/market/spot/prices + +EQXTOKEN=`cat ~/.packet-cli.json | jq ".token" --raw-output` + +curl \ + --silent \ + -X GET \ + --header 'Accept: application/json' \ + --header "X-Auth-Token: ${EQXTOKEN}" \ + 'https://api.equinix.com/metal/v1/market/spot/prices' + + +# jq '.spot_market_prices.da11."c3.small.x86".price' +