Trading bot hosting

Most trading bots need little hardware and a lot of reliability: P1 or P2 handles a typical bot, placed in the city nearest the exchange servers. This page covers placement, uptime and API key safety, not trading advice.

Recommended start: P1, $3.95/mo

How much server does a trading bot need?

Less than you might think. A bot that polls a few markets, keeps WebSocket feeds open and places orders is mostly idle, waiting for data.

  • One bot in Python or Node.js: 200~500 MB of RAM. P1 with 1 vCPU, 1 GB RAM, 20 GB NVMe is enough.
  • A framework with a web UI and a local database for history: 1~1.5 GB. Choose P2.
  • Several strategies, backtests on the same machine, or many pairs: 2~4 GB and two cores. Choose P4.
  • Heavy backtesting or many bots for clients: dedicated threads so live bots are not slowed by a backtest. Choose D8.

Run backtests on a separate server if you can; a backtest that eats all cores can delay a live order.

Nothing on this page is financial advice. We sell servers; strategy, risk and compliance with your exchange and local rules are your decisions.

Which city is closest to the exchange?

The one where the exchange runs its matching engine or its API endpoints. Most large exchanges host in a few well-known regions: Tokyo, Singapore and Frankfurt are common for crypto venues, and the US East Coast for many US-based services.

We offer all of those regions: Tokyo, Singapore, Frankfurt and Ashburn, among 15 cities in total. The Performance family is sold in every one of them.

Do not guess. Measure from a test server before committing to a long term:

curl -o /dev/null -s -w "dns %{time_namelookup} connect %{time_connect} tls %{time_appconnect} total %{time_total}\n" https://api.your-exchange.example/time
mtr -rwc 50 api.your-exchange.example

Compare time_connect between cities. A jump from 2 ms to 150 ms is a strong signal; differences under 1 ms usually do not matter for bots that trade on minutes or hours.

Plans that fit

Sizes picked for this project, smallest first. Prices are per month; the order total is the shortest term that reaches $40.

PlanWhySizePer monthOrder from
P1One bot in Python or Node.js, in any of 15 cities1 vCPU, 1 GB RAM, 20 GB NVMe$3.95$47.40 for 12 months
P2A bot framework with web UI and local history database1 vCPU, 2 GB RAM, 40 GB NVMe$6.95$41.70 for 6 months
P4Several strategies or pairs on one server2 vCPU, 4 GB RAM, 80 GB NVMe$12.05$72.30 for 6 months
D8Many bots, or live bots next to backtests2 vCPU, 8 GB RAM, 80 GB NVMe$25.85$77.55 for 3 months

How do I keep a bot running 24 hours a day?

Run it as a systemd service, not inside screen or a shell. systemd restarts it after a crash or a reboot, and journald keeps its logs.

Create /etc/systemd/system/bot.service:

[Unit]
After=network-online.target
Wants=network-online.target
[Service]
User=bot
WorkingDirectory=/home/bot/app
EnvironmentFile=/home/bot/app/.env
ExecStart=/home/bot/app/venv/bin/python main.py
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target

Enable it with systemctl enable --now bot and follow logs with journalctl -u bot -f. Add a heartbeat: have the bot send a message to your own chat or ping a health check URL every few minutes, so you learn about a stuck bot before you learn about a missed trade. See monitoring basics.

Why does clock sync matter for trading APIs?

Signed API requests carry a timestamp, and exchanges reject requests outside a short window, often a few seconds. A drifting clock shows up as random signature or timestamp errors.

Ubuntu uses systemd-timesyncd by default. For tighter sync install chrony: apt -y install chrony, then check with chronyc tracking; the system time offset should be in microseconds or low milliseconds. Keep the server in UTC (timedatectl set-timezone UTC) to avoid daylight-saving confusion in logs.

How do I protect exchange API keys?

Assume the server could one day be compromised, and limit what a stolen key can do.

  • No withdrawal permission. Create keys with trading and reading rights only.
  • IP allow-list. Most exchanges let you bind a key to addresses; enter your server IPv4. Your address stays the same for the life of the server, even across rebuilds.
  • File permissions. Keep keys in /home/bot/app/.env owned by the bot user with chmod 600. Never commit them to Git.
  • Separate user. Run the bot as an unprivileged user, never as root.
  • SSH keys only. Disable password logins (SSH hardening) and close every port except SSH with ufw. A bot needs no inbound ports unless you expose a dashboard, and that is best reached through an SSH tunnel.
  • Rotate keys when someone leaves a team or a laptop is lost.

What habits keep a bot server reliable?

Most bot outages are self-inflicted, so a few routines prevent nearly all of them.

  • Pin library versions in requirements.txt or package-lock.json; an unplanned upgrade of an exchange client library is a common cause of breakage.
  • Apply OS security updates, but reboot at a quiet time you choose. Set Unattended-Upgrade::Automatic-Reboot "false"; and reboot manually.
  • Rotate logs with journald limits (SystemMaxUse=500M in /etc/systemd/journald.conf) so the disk never fills.
  • Renew early. The renewal invoice arrives 7 days before the term ends, and an unpaid server is paused, which stops the bot. Paying on the day it arrives removes that risk.

How much does a trading bot server cost?

P1 is $3.95 a month, sold as $47.40 for 12 months. P2 is $6.95 a month and sold from $41.70 for 6 months. Traffic is not a concern for bots: market data streams use a few GB a month, far below the 0.5 TB included in Asia-Pacific or the 20 TB in Europe. Each order is a single crypto payment, and the price is the same in Tokyo, Singapore and Frankfurt.

Trading bot VPS, answered

Do you give trading advice or run bots for customers?

No. We provide the server only. Which bot, strategy and exchange you use is entirely your choice and responsibility.

Can I run several bots on one server?

Yes. Give each bot its own systemd unit and, ideally, its own user and API key, so one misbehaving bot cannot touch the others.

What happens to my IP if I rebuild the server?

Rebuild wipes the disk but keeps the IPv4 and IPv6 addresses, so exchange IP allow-lists keep working. Back up your bot config and keys first.

Is Windows available for MetaTrader-style platforms?

No, all images are Linux. Bots written in Python, Node.js, Go, Rust or Java run natively.

Should I use dedicated CPU for a bot?

Only if the server also does heavy work like backtesting or runs many bots. A single bot waiting on network events gains little from dedicated threads.

Build it on CheapVPS

Pick the plan, a city near your users and the image, then pay the order in crypto.