Urgent.News

What's breaking now, across hundreds of outlets.

Finance & Markets

How to choose automation infrastructure for a crypto trading team

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…

When selecting automation infrastructure for a crypto trading team, four key considerations should guide the decision: where the strategy executes, where the signing keys reside, the enforced limits adjacent to those keys, and the speed at which a signature is returned. Strategies that operate on a schedule or in response to events can be executed using Lit Actions within Lit Triggers, eliminating the need for a dedicated server.

For strategies requiring high-frequency signature generation, such as market making or latency arbitrage, it is advisable to keep the strategy on your own servers and offload signing to a Lit Action, as explained in the post about signing from the backend without exposing the private key.

Security is paramount when it comes to storing private keys. Traditionally, placing keys in environment variables on the strategy server poses a risk, as any breach of the server could compromise the key. On Lit, each wallet key is generated within an enclave and remains there, while your servers hold a usage key that only executes the approved signing code.

Exchange API keys can also be securely managed by having a Lit Action decrypt the exchange API secret inside the enclave, thus preventing the secret from residing on your servers.

In addition to secure key management, limits enforced next to the key are crucial for preventing errors even when the strategy is compromised or taken over. Lit enables the creation of JavaScript signing rules within the enclave that can cap order sizes, restrict specific markets, verify prices against a reference, and mandate approvals for substantial transactions. Changing these rules requires approving a new version due to their integral role in the code's hash.

Lastly, the speed of the signature return is a performance factor that should be measured, including the network latency from your servers to the signer. Benchmark testing on Lit's staging environment from an office connection using ordinary internet speeds yielded a 95th percentile (p95) latency of under 230 milliseconds for 600 requests, providing a benchmark for performance expectations. To begin utilizing Lit for your trading needs, create an account via the Lit dashboard, where Lit Triggers are documented in detail.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Finance & Markets

More from Wednesday 25 November →