Skip to main content
DeveloperPart of the Developer and Professional plans. See plans · Get your key

Private link

Your bot's server sits in the same datacenter as ours, and a direct link inside the building connects the two. Requests and streams go from your machine to the API over that link only. They never cross the public internet.

Public pathevery planyour serveranywherethe public internet: networks and routers in between, shared with everyonepublicfront doorShrine APIsol.shrine.tradePrivate linkDeveloperProfessionalone datacenter: Frankfurt, Amsterdam or New Yorkyour serveryour rackdirect linkinside the building, nothing in betweenShrine APIour rack

Why it matters​

Every request a bot makes, and every event it waits for, pays the trip between its server and the API twice: out and back. On the public internet that trip runs through other people's networks, and its length changes from one moment to the next. On a private link it is a few metres of cable.

Typical one-way time from your bot to the APIAcross an ocean~80 msAnother country10–30 msSame city~1 msPrivate linkwell under 1 ms, and the same every time
  • Streams reach you first. A trade on the Advanced Data Stream or the Ultra Fast Shred Stream is on your machine the moment we publish it, not after a trip across the internet.
  • Trades start sooner. A Lightspeed request reaches the race while the slot is still young, which is what the block 0 lane needs.
  • The same timing every time. No route changes, no busy hours, no shared queue at the front door. A bot tuned on Monday behaves the same on Friday.

What goes over it​

Everything. The Local Trade API, Lightspeed, every WebSocket stream and Ultra Fast Shred Stream all answer on the private address. Your plan's key works the same on it as on the public one, and the public address keeps working as a fallback.

Getting one​

  1. Get the Developer or Professional plan.
  2. Ask in the private Telegram group. Tell us the region: Frankfurt, Amsterdam or New York.
  3. We tell you which datacenter our servers are in. You rent a server or a rack there.
  4. The datacenter runs the link between your rack and ours. We hand you the private address and put your server's private IP on its allow list.

Connecting​

Over the private link you talk to each service directly: no TLS and no proxy in front, since the traffic never leaves the private network. The addresses start with http:// and ws://, and each service has its own port on the private address we hand you.

AddressWhat answers
Local Trade API and Lightspeedhttp://<private address>:8080every REST route: /api/local-trade, /api/lightspeed, …
Advanced Data Streamws://<private address>:8080/api/stream/wsthe plain WebSocket, the fastest way to the stream
Socket.IO streamsws://<private address>:8084trades, prices, candles, launches, migrations, and the Advanced Data Stream as a Socket.IO event
Ultra Fast Shred Streamws://<private address>:8110/api/ultrafast/streamUltra Fast
import WebSocket from "ws";

// The Advanced Data Stream: the same events as on the public address.
const ws = new WebSocket("ws://<private address>:8080/api/stream/ws?key=sk_…&actions=buy,sell,create");

// A trade: the same body as on the public address.
const res = await fetch("http://<private address>:8080/api/lightspeed", {
method: "POST",
headers: { "content-type": "application/json", "x-api-key": "sk_…" },
body: JSON.stringify(order),
});
  • Same key, same answers. Paths, bodies, events and limits are those of the public address; only the host changes.
  • Only your servers get in. The private address answers the servers on its allow list. Send us your server's private IP, or your rack's range, when we set up the link; anything else gets 403 not_allowed.
  • Keep the connection open. A new connection costs a handshake. Reuse one (HTTP keep-alive, one socket per stream) and every request leaves at once. Measured from a server next to ours in Frankfurt: a request on an open connection is answered in about 0.7 ms over the private link, 1.7 ms over the public address.
Not ready to move servers?

Put your bot in the same city as the region you use. That alone takes the trip to about a millisecond; the private link is the step after.