Why run a trading bot on a VPS
| Home PC or laptop | VPS | |
|---|---|---|
| Runs 24/7 | Only if never switched off, updated or put to sleep | Yes, in a data center with backup power |
| Connection | Home broadband, can drop or change IP | Data-center network with a fixed public IP |
| Static IP for API whitelisting | Usually not | Yes |
| Latency to exchange APIs | Depends on your ISP | Predictable, and can be chosen by location |
| Cost | Electricity and wear on your PC | Fixed monthly fee |

What an uptime SLA does and does not cover
Hosting providers publish a service level agreement, for example a 99.95% uptime commitment. Read it as a promise about infrastructure:
- Covered: the server being powered and reachable over the provider's network, within the SLA's measurement rules.
- Not covered: bugs or crashes in your bot, the exchange's API being down or rate-limiting you, internet problems beyond the provider's network, and trading losses.
99.95% allows roughly 22 minutes of downtime a month. A well-run bot should survive that by recovering cleanly: reloading state, reconciling open orders with the exchange and resuming. Our guide to uptime SLAs explains how the percentages translate into minutes. Be sceptical of any bot or service that "guarantees" returns; that is not something infrastructure can provide.
Latency and server location
Latency matters for strategies that react within seconds, such as arbitrage, market making and fast stop-losses. It matters much less for strategies that trade on hourly or daily signals.
- Indian exchanges: a server in Mumbai or Delhi usually gives the lowest latency to services hosted in India.
- Global exchanges: their API servers are often hosted outside India. Measure from candidate locations before choosing; ping or time an authenticated API call.
- Consistency beats raw speed for most retail bots. A VPS with steady CPU performance avoids delays during busy moments; check for CPU steal as described in our steal time guide.
curl -o /dev/null -s -w "connect: %{time_connect}s total: %{time_total}s\n" https://api.your-exchange.example/v1/time
Keeping a crypto trading bot running 24/7
Run it as a service
Do not run a bot in an SSH window you might close. Use systemd so it starts at boot and restarts after crashes:
[Unit]
Description=Trading bot
After=network-online.target
Wants=network-online.target
[Service]
User=bot
WorkingDirectory=/opt/bot
ExecStart=/opt/bot/venv/bin/python bot.py
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
Save it as /etc/systemd/system/tradingbot.service, then run sudo systemctl enable --now tradingbot. Node.js bots can use PM2 instead. The systemd.service documentation lists further options, such as RestartSec back-off and limits on how often a crashing service is restarted. Check the bot's own logs with journalctl -u tradingbot -f, which also shows why it stopped if it crashes in a loop.
Keep the clock accurate
Exchanges reject signed requests whose timestamps drift too far. Check timedatectl shows the clock as synchronised, and enable NTP with sudo timedatectl set-ntp true if not.
Monitor and alert
- Send a heartbeat to a monitoring service or a Telegram chat every few minutes; alert if it stops.
- Log every order and API error, and rotate logs so the disk never fills.
- Alert on repeated API errors or rate-limit responses.
Recover safely after restarts
On start-up, a bot should fetch open orders and positions from the exchange rather than trusting its own memory, so a restart never duplicates orders. Test this deliberately: restart the service in the middle of a paper-trading session and confirm it picks up exactly where it left off.
Securing exchange API keys
A trading bot holds keys that can move your money, so the server must be locked down:
- Disable withdrawals on API keys. A bot only needs trading permissions.
- Whitelist your VPS's IP address on the exchange, so stolen keys are useless elsewhere.
- Store keys in environment variables or a protected file readable only by the bot's user, never in a public Git repository.
- Harden SSH: key-only logins and two-factor authentication; see SSH two-factor authentication.
- Keep the server updated and run only what the bot needs.
- Avoid unknown bot software that asks for keys with withdrawal permissions; scams in this space are common.
Tax and rules in India
Crypto trading is legal in India but heavily taxed, with a flat tax on gains and TDS on transfers. Automated trading does not change your obligations: keep the bot's trade logs, because they make tax calculations much easier. Check the current rules with a tax professional, as they change.
Why developers choose SkyRain Cloud VPS
If you want a dependable home for an automated bot, SkyRain Cloud Intel VPS plans include:
- KVM virtualization. Your own kernel and allocated vCores, so you can tune the system the way this guide describes.
- Intel Xeon Platinum 8269CY hosts. Server-class Cascade Lake CPUs with DDR4 ECC memory.
- NVMe SSD storage on every plan, which keeps I/O wait low for databases and builds.
- Full root access to install and configure whatever your stack needs.
- Unmetered 1 Gbps port in India, close to your users.
- Simple billing and real support. Monthly billing in rupees with UPI, plus 24/7 tickets, WhatsApp and Discord.
Frequently Asked Questions
Do I need a VPS for a crypto trading bot?
Which crypto trading bots guarantee uptime?
What does a 99.95% uptime SLA mean?
Where should my trading bot VPS be located?
How do I keep my exchange API keys safe on a VPS?
How much does a VPS for a trading bot need?
Conclusion
A VPS gives a crypto trading bot what a home computer cannot: constant power, a stable connection and a fixed IP. An uptime SLA covers that infrastructure, not your strategy or the exchange, so build the bot to restart and resynchronise on its own, keep its clock accurate and monitor it. Above all, protect the API keys with withdrawals disabled, IP whitelisting and a hardened server.
For an always-on server in India, see our Intel VPS plans.
SkyRain Cloud Intel Xeon VPS Plans
KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — Intel | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Business websites, small apps, scheduled jobs and bots | Order |
| VPS 2 — Intel | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,169/month | Business software, mid-size databases, several sites on one server | Check stock |
| VPS 3 — Intel | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,249/month | ERP/CRM stacks, heavier databases, multiple production apps | Check stock |
| VPS 4 — Intel | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,299/month | High-memory workloads and consolidated production servers | Check stock |
Prices are monthly in INR as listed on the SkyRain Cloud store (verified 2026-11-23). Live stock and final price are shown at checkout.