Regions
| Region | Address |
|---|---|
| Frankfurt | sol.shrine.trade |
| Amsterdam | sol-ams.shrine.trade |
| New York | sol-nyc.shrine.trade |
Free and Lite run on Frankfurt, sol.shrine.trade. Developer and Professional add Amsterdam and New York. Every region runs the whole API: trades, Lightspeed, every stream and Ultra Fast Shred Stream, each on its own chain feed in its own city. Your Lightspeed account and key work in every region, so a bot moves by changing the address and nothing else.
Next to the region you use. A request 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. The region picker at the bottom of the sidebar rewrites every address in these docs to the region you choose, so the snippets you copy already point where your bot runs.
Candle history (ohlcv_history) is kept in Frankfurt and answered from there in every region. Everything else, trades, streams and accounts, is served by the region you connect to.
An update keeps your streams in their region. An open stream is closed once with code 1012 (service restart): reconnect to the same address. The WebSocket streams and Ultra Fast Shred Stream answer again within a second (the new version starts next to the old one); the Advanced 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 requests and 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; a request takes 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.
One API, four networks. The same shape of request, the same stream events and the same keys work on every network shrine.trade serves: Solana, BNB Chain, Robinhood Chain and Arc. A bot written for one moves to the next by changing the base URL.