Regions
| Region | Address |
|---|---|
| Frankfurt | fra.api.koi.tools |
| Amsterdam | ams.api.koi.tools |
| New York | nyc.api.koi.tools |
The Data Stream plan includes all three. Every region runs the whole Full Data Stream and Shreds, each on its own chain feed in its own city, and your key works in every one of them, so a bot moves by changing the address and nothing else.
Local trading runs in Frankfurt, fra.api.koi.tools.
Next to the region you use. A connection from the same city reaches the API in about a millisecond; from across an ocean it takes the ocean. A bot in the US belongs on New York, a bot in Europe on Frankfurt or Amsterdam. From Asia, pick the region with the lowest ping from your server.
An update keeps your stream in its region. An open stream is closed once with code 1012 (service restart): reconnect to the same address. Shreds answers again within a second (the new version starts next to the old one); the Full Data Stream's reconnect waits about 15 seconds for the API to restart, and with sinceSlot nothing is missed. If a region's services stop, its address hands reconnecting streams to the next region until they are back: Frankfurt and Amsterdam cover each other, New York goes to Frankfurt. You keep the same address, key and plan; events take the extra hop (about 8 ms between Frankfurt and Amsterdam, about 100 ms from New York). A minute after the region is back, a stream that was handed over is closed with 1012 once more, so its reconnect lands at home again. Only if a whole server is down does its address not answer; connect to another region then.