How to choose automation infrastructure for a crypto trading team
Retail trading bots and institutional order systems answer different questions than the one a team building its own strategies has. Here is how to choose where strategies run, where keys live, and which limits sit next to the key.
A trading team that builds its own strategies needs automation infrastructure that answers four questions: where the strategy runs, where the signing keys live, what limits are enforced next to the keys, and how fast a signature comes back. On Lit Protocol, strategies that run on a schedule or react to events can run entirely as Lit Actions on Lit Triggers, with keys that stay inside a secure enclave. Faster strategies keep running on your own servers and call a Lit Action that checks each order before it signs. In our benchmark on Lit's staging environment, using Hyperliquid's testnet signing formats from an office connection, a signed Hyperliquid order came back in a median of 135 to 140 milliseconds.
Three kinds of tools
Retail bot platforms let a person pick a strategy and connect an exchange account with an API key. They are fast to start with. The platform holds your exchange keys, and you run the strategies it offers.
Institutional order and execution management systems route large orders across venues and handle allocation and reporting. They are built for desks that trade by hand or with an execution algorithm. They are not where you write and run your own automated strategies.
The third kind is infrastructure you build on, which is where most teams with their own strategies end up. The questions below are about that kind.
Where the strategy runs
Strategies that act on a schedule or on an event fit on Lit Triggers. Examples include rebalancing, take-profit and stop-loss management, funding-rate trades, sweeping, and paying gas. The strategy is a Lit Action, and Triggers runs it on a cron schedule, when a webhook arrives, or when an event happens on-chain. You do not run a server for them, because Lit runs the Triggers service. The posts on running a scheduled job that signs transactions and building a crypto trading bot that signs its own transactions show the setup.
Strategies that sign many times a second, like market making and latency arbitrage, belong on your own servers near the venue. For those, keep the strategy where it is and move only the signing to a Lit Action, as the post on signing from your backend without exposing the private key describes.
Where the keys live
The common setup keeps a private key in an environment variable on the strategy server, which means anything that reaches the server can take it. On Lit, each wallet's key is created inside the enclave and stays there. Your servers hold a usage key that can only run the signing code you approved. The same applies to exchange API keys. A Lit Action can decrypt an exchange's API secret inside the enclave and sign the exchange request there, so the secret never sits on your servers either.
On Hyperliquid, a Lit wallet can act as an API wallet that your main account approves, so it can trade without holding funds. The post on building a Hyperliquid trading bot without keeping the private key on your server has the code.
What limits sit next to the key
A limit in your strategy code stops a mistake only if the strategy is working correctly. A limit next to the key still holds when the strategy is broken or someone has taken over the server. On Lit, the signing rule is JavaScript that runs in the enclave before every signature. It can cap order size, allow only certain markets, check the price against a reference, and require approvals for large moves. Because the rules are part of the code's hash, changing them means approving a new version.
How fast it needs to be
Measure the whole path, including the network from your servers to the signer. Our signing latency results were measured on our staging environment from our office on an ordinary connection, across 600 requests, with p95 under about 230 milliseconds.
Get started
To create an account, go to the Lit dashboard and click Create an account. Lit Triggers is documented at developer.litprotocol.com/lit-triggers.