Where to host a OKX trading bot
We earn commissions when you shop through the links below. How we make money
Tokyo is nearest, at 14.7 ms to OKX's API.
Nothing we measured is closer than 10 ms. A server next to the exchange would answer in a few milliseconds, so OKX's API sits somewhere we don't benchmark yet: a data center of a provider we have not measured may be much nearer.
90 data centers · a request on an open connection from servers we rent · Oct 31 – Nov 24, 2026 · how we measure
Our pick for OKX
Vultr Tokyo · nrt
Does 15 ms matter for your bot?
Market making, arbitrage
You compete with other bots for the same price. Every millisecond moves you down the queue.
Matters a lot: host as near as you can
Scalping, fast signals
You act within seconds of a move. Tens of milliseconds change your fill a little.
Matters some: the nearest region is enough
Grid, DCA, swing
Orders wait minutes or hours. Uptime and price matter more than distance.
Barely matters: pick on price and uptime
Nearest data centers to OKX
Median and p90 of 10 requests from servers we create in each data center · cheapest plan with 1 GB or more · stock now
| # | Data center | API, ms | p90 | Cheapest 1 GB+ plan | Stock | Measured |
|---|---|---|---|---|---|---|
| 1 |
Tokyo, JP
Vultr · nrt
|
14.7 | 16.6 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 17 |
| 2 |
Tokyo, JP
LightNode · jp-tokyo-1
|
16.0 | 17.1 | sold out | Nov 13 | |
| 3 |
Tokyo, JP
Cherry Servers · JP-Tokyo
|
24.7 | 26.4 | Cloud VPS 1 (Gen 2) $3.28 | Sold out | Nov 5 |
| 4 |
Osaka, JP
Vultr · itm
|
28.2 | 31.8 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Oct 31 |
| 5 |
Seoul, KR
Vultr · icn
|
46.7 | 50.1 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 2 |
| 6 |
Seoul, KR
LightNode · kr-seoul-2
|
47.4 | 49.7 | 1 vCPU 2 GB $8.28 | Not reported | Nov 13 |
| 7 |
Taipei, TW
LightNode · cn-taiwan-2
|
49.0 | 50.4 | 1 vCPU 2 GB $8.28 | Not reported | Nov 13 |
| 8 |
Hong Kong, HK
LightNode · cn-hongkong-3
|
70.2 | 80.9 | 1 vCPU 2 GB $8.28 | Not reported | Nov 13 |
| 9 |
Singapore, SG
DigitalOcean · sgp1
|
86.2 | 90.7 | Basic s-1vcpu-1gb $6.00 | In stock | Nov 9 |
| 10 |
Singapore, SG
Vultr · sgp
|
86.3 | 90.8 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Oct 31 |
| 11 |
Singapore, SG
Hetzner · sin
|
89.4 | 102 | CPX 02 $8.74 | In stock | Nov 11 |
| 12 |
Singapore, SG
UpCloud · sg-sin1
|
89.6 | 94.4 | STARTER-1xCPU-1GB $3.50 | Not reported | Nov 10 |
| 13 |
Jakarta, ID
LightNode · id-jakarta-1
|
98.2 | 105 | 1 vCPU 2 GB $8.28 | Not reported | Nov 13 |
| 14 |
Singapore, SG
Cherry Servers · SG-Singapore
|
98.3 | 104 | Cloud VDS 2 $53.60 | In stock | Nov 24 |
| 15 |
Hillsboro, US
Hetzner · hil
|
107 | 110 | CPX 11 $19.68 | In stock | Nov 11 |
| 16 |
Ho Chi Minh City, VN
LightNode · vn-hochiminh-1
|
116 | 119 | 1 vCPU 2 GB $8.28 | Not reported | Nov 13 |
| 17 |
San Jose, US
Vultr · sjc
|
118 | 120 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 2 |
| 18 |
Yangon, MM
LightNode · mm-yangon-1
|
120 | 124 | 1 vCPU 2 GB $8.28 | Not reported | Nov 24 |
| 19 |
Los Angeles, US
Vultr · lax
|
120 | 123 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 4 |
| 20 |
San Francisco, US
DigitalOcean · sfo2
|
121 | 126 | Basic s-1vcpu-1gb $6.00 | In stock | Nov 4 |
| 21 |
Sydney, AU
UpCloud · au-syd1
|
122 | 124 | STARTER-1xCPU-1GB $3.50 | Not reported | Nov 3 |
| 22 |
San Francisco, US
DigitalOcean · sfo3
|
123 | 128 | Basic s-1vcpu-1gb $6.00 | In stock | Nov 9 |
| 23 |
San Jose, US
UpCloud · us-sjo1
|
125 | 134 | STARTER-1xCPU-1GB $3.50 | Not reported | Nov 14 |
| 24 |
Sydney, AU
DigitalOcean · syd1
|
125 | 133 | Basic s-1vcpu-1gb $6.00 | In stock | Nov 3 |
| 25 |
Melbourne, AU
Vultr · mel
|
130 | 132 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 3 |
| 26 |
Bangalore, IN
Vultr · blr
|
131 | 133 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 3 |
| 27 |
Mumbai, IN
Vultr · bom
|
140 | 142 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 2 |
| 28 |
Dhaka, BD
LightNode · bg-dhaka-1
|
140 | 147 | 1 vCPU 2 GB $8.28 | Not reported | Nov 13 |
| 29 |
Dallas, US
Vultr · dfw
|
149 | 151 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 4 |
| 30 |
Chicago, US
Cherry Servers · US-Chicago
|
153 | 159 | Cloud VDS 2 $53.60 | In stock | Nov 24 |
| 31 |
Toronto, CA
DigitalOcean · tor1
|
153 | 156 | Basic s-1vcpu-1gb $6.00 | In stock | Nov 3 |
| 32 |
Chicago, US
Vultr · ord
|
155 | 162 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 4 |
| 33 |
Toronto, CA
LightNode · ca-toronto-1
|
158 | 159 | 1 vCPU 2 GB $8.28 | Not reported | Nov 13 |
| 34 |
Atlanta, US
Vultr · atl
|
165 | 169 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 17 |
| 35 |
Chicago, US
UpCloud · us-chi1
|
168 | 190 | STARTER-1xCPU-1GB $3.50 | Not reported | Nov 3 |
| 36 |
New York, US
DigitalOcean · nyc3
|
168 | 172 | Basic s-1vcpu-1gb $6.00 | In stock | Nov 9 |
| 37 |
Piscataway, US
Vultr · ewr
|
168 | 172 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 5 |
| 38 |
Bangalore, IN
DigitalOcean · blr1
|
172 | 180 | Basic s-1vcpu-1gb $6.00 | In stock | Nov 2 |
| 39 |
New York, US
DigitalOcean · nyc2
|
172 | 176 | Basic s-1vcpu-1gb $6.00 | In stock | Nov 3 |
| 40 |
Miami, US
Vultr · mia
|
173 | 181 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 4 |
| 41 |
New York, US
UpCloud · us-nyc1
|
174 | 186 | STARTER-1xCPU-1GB $3.50 | Not reported | Nov 20 |
| 42 |
Mexico City, MX
LightNode · mx-mexico-1
|
174 | 189 | 1 vCPU 2 GB $8.28 | Not reported | Nov 13 |
| 43 |
Ashburn, US
Hetzner · ash
|
177 | 176 | CPX 11 $19.68 | In stock | Nov 23 |
| 44 |
Manama, BH
LightNode · bh-askar-1
|
179 | 183 | sold out | Nov 13 | |
| 45 |
Doha, QA
LightNode · qa-doha-1
|
180 | 190 | 1 vCPU 2 GB $8.28 | Not reported | Nov 13 |
| 46 |
Mexico City, MX
Vultr · mex
|
182 | 200 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 3 |
| 47 |
New York, US
DigitalOcean · nyc1
|
187 | 189 | Basic s-1vcpu-1gb $6.00 | In stock | Nov 3 |
| 48 |
Frankfurt, DE
LightNode · ger-frankfurt-1
|
241 | 245 | sold out | Nov 13 | |
| 49 |
Paris, FR
Vultr · cdg
|
243 | 250 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 3 |
| 50 |
Madrid, ES
UpCloud · es-mad1
|
244 | 248 | STARTER-1xCPU-1GB $3.50 | Not reported | Nov 3 |
| 51 |
London, GB
Vultr · lhr
|
245 | 253 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 2 |
| 52 |
London, GB
DigitalOcean · lon1
|
245 | 252 | Basic s-1vcpu-1gb $6.00 | In stock | Nov 3 |
| 53 |
Madrid, ES
Vultr · mad
|
247 | 251 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 17 |
| 54 |
Marseille, FR
LightNode · fr-marseille-1
|
247 | 253 | 1 vCPU 2 GB $8.28 | Not reported | Nov 13 |
| 55 |
Amsterdam, NL
UpCloud · nl-ams1
|
250 | 258 | STARTER-1xCPU-1GB $3.50 | Not reported | Nov 10 |
| 56 |
Buenos Aires, AR
LightNode · ar-buenosaires-1
|
250 | 256 | 1 vCPU 2 GB $8.28 | Not reported | Nov 13 |
| 57 |
Manchester, GB
Vultr · man
|
251 | 256 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 3 |
| 58 |
Santiago, CL
LightNode · cl-santiago-1
|
252 | 259 | 1 vCPU 2 GB $8.28 | Not reported | Nov 13 |
| 59 |
Sofia, BG
LightNode · bg-sofia-1
|
252 | 255 | 1 vCPU 2 GB $8.28 | Not reported | Nov 13 |
| 60 |
Stockholm, SE
UpCloud · se-sto1
|
253 | 265 | STARTER-1xCPU-1GB $3.50 | Not reported | Nov 3 |
| 61 |
Amsterdam, NL
Vultr · ams
|
255 | 261 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 5 |
| 62 |
Amsterdam, NL
Cherry Servers · NL-Amsterdam
|
255 | 262 | Cloud VPS 1 (Gen 2) $3.28 | In stock | Nov 24 |
| 63 |
Amsterdam, NL
DigitalOcean · ams3
|
255 | 261 | Basic s-1vcpu-1gb $6.00 | In stock | Nov 9 |
| 64 |
Frankfurt, DE
DigitalOcean · fra1
|
256 | 262 | Basic s-1vcpu-1gb $6.00 | In stock | Nov 4 |
| 65 |
London, GB
UpCloud · uk-lon1
|
257 | 276 | STARTER-1xCPU-1GB $3.50 | Not reported | Nov 3 |
| 66 |
Nuremberg, DE
Hetzner · nbg1
|
258 | 265 | CX 23 $6.55 | In stock | Nov 23 |
| 67 |
Riyadh, SA
LightNode · sau-riyadh-3
|
259 | 279 | 1 vCPU 2 GB $8.28 | Not reported | Nov 13 |
| 68 |
Helsinki, FI
Hetzner · hel1
|
261 | 270 | CPX 02 $6.01 | In stock | Nov 23 |
| 69 |
Copenhagen, DK
UpCloud · dk-cph1
|
262 | 270 | STARTER-1xCPU-1GB $3.50 | Not reported | Nov 3 |
| 70 |
Falkenstein, DE
Hetzner · fsn1
|
263 | 271 | CPX 02 $7.10 | In stock | Nov 23 |
| 71 |
Frankfurt, DE
Vultr · fra
|
264 | 271 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 16 |
| 72 |
Frankfurt, DE
UpCloud · de-fra1
|
264 | 271 | STARTER-1xCPU-1GB $3.50 | Not reported | Nov 14 |
| 73 |
Stockholm, SE
Cherry Servers · SE-Stockholm
|
265 | 273 | Premium VDS 2 $75.48 | In stock | Nov 24 |
| 74 |
Frankfurt, DE
Cherry Servers · DE-Frankfurt
|
265 | 267 | Cloud VDS 2 $53.60 | In stock | Nov 24 |
| 75 |
Warsaw, PL
Vultr · waw
|
267 | 280 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 4 |
| 76 |
Stockholm, SE
Vultr · sto
|
267 | 271 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 3 |
| 77 |
Athens, GR
LightNode · gr-athens-1
|
268 | 276 | 1 vCPU 2 GB $8.28 | Not reported | Nov 13 |
| 78 |
Helsinki, FI
UpCloud · fi-hel2
|
268 | 274 | STARTER-1xCPU-1GB $3.50 | Not reported | Nov 3 |
| 79 |
Helsinki, FI
UpCloud · fi-hel1
|
268 | 272 | STARTER-1xCPU-1GB $3.50 | Not reported | Nov 3 |
| 80 |
Stavanger, NO
UpCloud · no-svg1
|
276 | 284 | STARTER-1xCPU-1GB $3.50 | Not reported | Nov 3 |
| 81 |
Cairo, EG
LightNode · eg-cairo-1
|
279 | 289 | 1 vCPU 2 GB $8.28 | Not reported | Nov 13 |
| 82 |
Warsaw, PL
UpCloud · pl-waw1
|
281 | 290 | STARTER-1xCPU-1GB $3.50 | Not reported | Nov 21 |
| 83 |
Šiauliai, LT
Cherry Servers · LT-Siauliai
|
282 | 292 | Cloud VPS 1 (Gen 2) $3.28 | In stock | Nov 24 |
| 84 |
Bucharest, RO
LightNode · ro-bucharest-1
|
285 | 290 | 1 vCPU 2 GB $8.28 | Not reported | Nov 13 |
| 85 |
Santiago, CL
Vultr · scl
|
295 | 310 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 3 |
| 86 |
São Paulo, BR
Vultr · sao
|
299 | 325 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 3 |
| 87 |
Tel Aviv, IL
Vultr · tlv
|
306 | 311 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 3 |
| 88 |
São Paulo, BR
LightNode · br-saopaulo-1
|
310 | 324 | 1 vCPU 2 GB $8.28 | Not reported | Nov 13 |
| 89 |
Johannesburg, ZA
Vultr · jnb
|
415 | 420 | Cloud Compute vc2-1c-1gb $5.00 | In stock | Nov 3 |
| 90 |
Kuwait City, KW
LightNode · kw-kuwait-1
|
445 | 473 | 1 vCPU 2 GB $8.28 | Not reported | Nov 13 |
If the server must be on another continent
| Asia | Tokyo · Vultr | 14.7 | $5.00 |
| North America | Hillsboro · Hetzner | 107 | $19.68 |
| Oceania | Sydney · UpCloud | 122 | $3.50 |
| Europe | Frankfurt · LightNode | 241 | |
| South America | Buenos Aires · LightNode | 250 | $8.28 |
| Africa | Cairo · LightNode | 279 | $8.28 |
Reading the numbers
- Time from the request leaving the server to the first byte back, on an open connection, as a bot that keeps its connection does.
- Only status 200 counts: a CDN answering a blocked country is not a way to trade.
- p90 is the slow tail: what one request in ten is slower than.
- Only data centers where we benchmark plans: measured so far from Africa: LightNode, Vultr; Asia: Cherry Servers, DigitalOcean, Hetzner, LightNode, UpCloud, Vultr; Europe: Cherry Servers, DigitalOcean, Hetzner, LightNode, UpCloud, Vultr; North America: Cherry Servers, DigitalOcean, Hetzner, LightNode, UpCloud, Vultr; Oceania: DigitalOcean, UpCloud, Vultr; South America: LightNode, Vultr.
OKX bot hosting: questions
Where are OKX's API servers?
OKX does not say. Of the data centers we measure, its API answers fastest from Tokyo (Vultr), in 14.7 ms. That is not next door: a server beside the API would answer in a few milliseconds, so the API sits somewhere we do not benchmark yet, and a data center of another provider may be nearer.
Is a VPS in Tokyo fast enough for a OKX bot?
From Tokyo a request takes 14.7 ms with the slowest one in ten at 16.6 ms. For grid, DCA or swing strategies, where orders wait minutes, that is far more than enough; for scalping it is good; for market making and arbitrage against other bots every millisecond counts, so measure your own setup too.
REST or WebSocket: which latency matters?
Most bots read market data over a WebSocket stream and send orders over REST or a WebSocket order API. Both travel the same network path, so the round trip we measure on an open REST connection is a fair guide to both; what the exchange does inside before it answers differs between them.
Can I run a OKX bot from a US server?
Our US servers get answers, the nearest in Hillsboro at 107 ms. Whether you may trade from the US is set by OKX's terms for your account and country, not by the server: check them first.
How much server does one bot need?
One bot trading over the API runs on 1 vCPU and 1 GB of RAM; 512 MB tends to run out once logs and a runtime grow. Several bots, backtests or a database want 2 GB or more. Dedicated vCPUs keep the timing steady when the neighbours on a shared host are busy.