Use case, price read 2026-12-01 11:44:53 UTC
Backtests on the cheapest cloud
Backtests fits a 32 vCPU machine (64 GB+ RAM). The cheapest 32 vCPU machine (64 GB+ RAM) on the CloudSwap board right now is $0.222/h on Vast.ai (Utah, US), read 2026-12-01 11:44:53 UTC. A 1-hour job costs about $0.22 there, plus start-up time.
100 backtest runs of 1 hour on 32 vCPU
Price per hour x hours| Option | Per hour | Hours | Cost | Source |
|---|---|---|---|---|
| AWS c7i.8xlarge (32 vCPU), on-demand | $1.43/h | 100 | $142.80 | AWS list price, read 2026-11-30, instances.vantage.sh |
| CloudSwap, cheapest 32 vCPU machine (64 GB+ RAM) on the board today (Vast.ai) | $0.222/h | 100 | $22.24 | CloudSwap price on the board today, read 2026-12-01 11:44:53 UTC. Nearest board shape, community host |
How to read the examples
On our own 16 vCPU benchmark of 2026-11-30, the offers CloudSwap picked cost 63% to 72% less per run than AWS on-demand direct (the runs).
The job shape
A backtest runs one model over historical data, often for many date ranges or parameter sets. Each run is a CPU batch job: read the data, compute, write a result file. Runs do not depend on each other, so they spread across machines.
Spec: 32 vCPU, 64 GB memory, about 1 hours, spot allowed.
Price it
The quote ranks every offer for this exact spec by cost per run. Quotes are free today and need no key.
curl -s https://cloudswap.ai/api/quote \
-H 'content-type: application/json' \
-d '{"vcpus":32,"mem_gb":64,"hours":1,"spot_ok":true}'Use cloudswap to quote a 32 vCPU, 64 GB job that runs 1 hours. Spot is OK.Run it
When running jobs opens, save the job as job.json and send it with your API key. CloudSwap runs it on the cheapest fitting machine on Vast.ai, RunPod or Shadeform, paid from prepaid credits.
{
"vcpus": 32,
"mem_gb": 64,
"hours": 1,
"spot_ok": true,
"command": "pip install -q numpy pandas && python -c \"import urllib.request as u; exec(u.urlopen('https://example.com/your_backtest.py').read())\"",
"image": "python:3.12-slim",
"max_hours": 1.5,
"label": "backtests"
}export CLOUDSWAP_API_KEY=cs_live_...
curl -s https://cloudswap.ai/api/jobs \
-H "Authorization: Bearer $CLOUDSWAP_API_KEY" \
-H 'content-type: application/json' \
-d @job.jsonRunning jobs is not open to everyone yet. Until it opens, this call answers jobs_closed. You can buy credits when running jobs opens to everyone. Quotes are free today.
Can runs be interrupted?
Yes, on spot offers. A stopped run simply runs again, because each run is independent.
Where does the data come from?
Your job pulls its inputs from your own storage. If they live in AWS, set data_in_gb and the quote adds the egress cost to each offer.
Make it cheap and safe
- Give each run its own parameter set through env values, so a failed run can be sent again alone.
- Spot offers are fine: a stopped run simply runs again.
- Pull the data once per run from your own storage.
Related
Price your exact job
Add CloudSwap to your agent. It sends the job spec and gets the cheapest fit, ranked by cost per run. Quotes are free today and need no sign-up.
claude mcp add --transport http cloudswap https://cloudswap.ai/mcp