Algorithmic trading in crypto: strategies, tools and how to automate one
Updated Nov 12, 2026 · 7 min read
What algorithmic trading is, nine algorithmic strategies with examples, the tools for Hyperliquid, whether it’s profitable after costs, and how to automate a strategy with or without code.
What is algorithmic trading? Algorithmic trading uses a program to place and manage orders by fixed rules: when to enter, how much to trade, at what price and when to exit. In crypto, algorithms connect to an exchange’s API and run around the clock, from simple schedules such as dollar-cost averaging to market making and arbitrage. The rule can be simple; the point is that the program applies it the same way every time, without hesitation, fatigue or revenge trades.
Key takeaways
- An algorithm is a rule, code that applies it and an exchange connection. You can write the code yourself or describe the rule to an AI agent that runs it.
- Common crypto algorithms: trend following, mean reversion, breakout, statistical arbitrage, funding carry, market making, scalping, DCA and grid, plus execution algorithms such as TWAP.
- Costs decide whether it pays: on Hyperliquid at the base tier a round trip costs 0.09% as taker and 0.03% as maker, before slippage.
- Overfitting is the usual reason a good backtest fails live; test on data the rules never saw.
- On Senpi you describe the rule in plain English and it runs as code, maker-first, with a stop from the first fill and 0% Senpi fee on paid plans.
Automate a crypto strategy without code on Senpi
Senpi publishes this guide. Senpi is an AI Quant for Hyperliquid, and the quickest way to put an algorithm live without writing or hosting code:
- 01Describe the rule. In the Senpi app, or from Claude, ChatGPT, Grok, Muse or Hermes through Senpi Connectors, say what to trade, when to enter and how to exit. The agent asks one decision at a time and reads the full rule back before anything runs.
- 02Or start from a template. Senpi’s open-source strategy library covers trend, mean reversion, breakout, pairs and funding strategies. Deploy one as it is or change its levers in plain language.
- 03Fund it. Each strategy gets its own isolated strategy wallet. Strategies start from $10 USDC, and each template shows its own minimum.
- 04It runs 24/7 on Senpi’s runtime. Entries go maker-first by default, with a taker fallback, and strategies built from a rule or a template carry the Dynamic Stop-Loss (DSL) from the first fill, with a daily-loss or drawdown halt if you set one.
There is no server to run and no exchange key to store: the agent holds no key and cannot withdraw. A strategy you confirm runs as code on Senpi’s runtime, and by default no AI model makes live trading decisions. Copy strategies carry at most a flat stop. Senpi adds 0% on paid plans, from $50 a month, and 0.03% on the free trial. Senpi doesn’t run backtests; Simulations, paper trading with simulated money, are coming.
Algorithmic trading strategies, with examples
| Strategy | What the algorithm does | When it loses | Senpi templates | Read more |
|---|---|---|---|---|
| Trend following and momentum | Buys strength and sells weakness, such as a 20/50 EMA cross or a break of the 7-day high | Choppy, sideways markets | Moose, Hawk | Trailing stops |
| Mean reversion | Fades stretched prices back toward an average, such as RSI extremes | Strong trends | Salmon, Owl | Mean reversion |
| Breakout | Trades the first move out of a range, such as the opening range | False breaks that snap back | Oryx, Rooster, Viper, Badger | Opening range breakout |
| Statistical arbitrage and pairs | Trades the gap between related assets, long one and short the other | Relationships that break | Chameleon, Octopus, Cougar, Relativity XYZ | Stat arb and pairs |
| Funding carry | Holds the side the crowd pays funding to, hedged or with a stop | Funding flips, or price runs against the position | Camel, Pangolin, Ant | Funding-rate arbitrage |
| Market making | Quotes both sides and earns the spread | Fast one-way moves | None; Senpi places entries maker-first instead | Market making |
| Scalping | Many short trades on liquid markets | Fees and noise | Hare | 17 strategies |
| DCA and grid | Buys on a schedule, or ladders buy and sell orders through a range | Long bear markets (DCA); breakouts out of the range (grid) | No strict DCA or grid template; Tortoise is a scheduled buyer | 17 strategies |
| Execution (TWAP) | Splits a large order over time to cut its price impact | Prices trending during the run | Hyperliquid has a native TWAP order | Order types |
Tools for algorithmic crypto trading
| Tool | Best for | Hyperliquid support |
|---|---|---|
| Hyperliquid Python SDK | Your own code against Hyperliquid’s API | Official SDK |
| CCXT | One API across many exchanges | hyperliquid exchange class: spot, perps, HIP-3, testnet |
| Freqtrade | A ready-to-run strategy runner with backtests and parameter optimisation | Through CCXT; backtests limited to the last 5,000 candles |
| Hummingbot | Market making and arbitrage | Spot and perp connectors, testnet, HIP-3 markets |
| NautilusTrader | One codebase for backtests and live trading | Native adapter: spot, perps and HIP-3 markets |
| Senpi (AI agent) | Describing a rule in plain English and having it run hosted, with stops built in | Native: crypto perps plus HIP-3 stock, commodity and FX perps |
Is algorithmic trading profitable?
It can be, but the algorithm only executes an edge; it doesn’t create one. What decides the result:
- Costs. At Hyperliquid’s base tier a round trip costs 0.09% as taker and 0.03% as maker. A rule that makes 0.10% a trade before costs keeps 0.01% as taker, before slippage, and 0.07% as maker.
- Slippage. Market orders pay the spread and walk the book; on smaller markets that can cost more than the fee (what is slippage).
- Overfitting. Tune enough parameters and any rule fits the past. Test on data it never saw and expect live results to be worse (how to backtest).
- Regime change. Trend strategies lose in ranges and mean reversion loses in trends, and edges fade as more traders use them.
- Operations. Servers go down, keys leak and APIs rate-limit: Hyperliquid allows 1,200 weight a minute per IP on its REST API and limits each address’s order actions by its traded volume.
- Risk of ruin. One position without a stop at high leverage can undo a year of small gains.
Judge an algorithm on risk-adjusted numbers, not total profit: the Sharpe ratio, max drawdown and profit factor.
How to build and automate a trading algorithm
- 01Write the rule so a stranger could follow it: market, entry, exit, size and stop.
- 02Get the data. Hyperliquid’s free info API serves candles, order books and funding.
- 03Backtest with fees, slippage and funding, then test on a period you didn’t tune on.
- 04Start small. Hyperliquid has a testnet for checking the code, and a small live size shows real fills.
- 05Automate it: your own code on a server with the SDK, CCXT or a framework, or an AI agent such as Senpi that runs it for you.
- 06Set a kill switch: a daily-loss and drawdown limit that stops the algorithm, and review it regularly.
Hyperliquid charges 0.015% for maker orders and 0.045% for taker orders at the base tier on crypto perps. Senpi adds 0% on paid plans and 0.03% on the free trial or without a paid plan.
What is algorithmic trading in crypto?
Using a program to place and manage crypto orders by fixed rules, through an exchange’s API. It runs around the clock and applies the same rules every time, from simple schedules to market making.
Is algorithmic trading profitable?
Only when the strategy behind it has an edge that survives fees, slippage and funding. Automation removes hesitation and mistakes, not risk; many algorithms that look good in a backtest lose money live because of overfitting and costs.
What is the difference between algorithmic trading and quant trading?
Algorithmic trading is about placing orders with code; quant trading is about deciding with models built on data. Most quant strategies are executed by algorithms. See what is quant trading.
What is an automated trading system?
Software that runs a trading strategy end to end: it reads market data, decides by its rules, places orders and manages risk, with limits that stop it when losses pass a threshold.
Do I need to code to do algorithmic trading?
No. On Senpi you describe the rule in plain English or deploy a template, approve it, and Senpi runs it as code on its runtime, with a stop from the first fill.
Can I run trading algorithms on Hyperliquid?
Yes. Hyperliquid has a free API, an official Python SDK and a testnet, and CCXT, Freqtrade, Hummingbot and NautilusTrader all connect to it. Senpi runs strategies on Hyperliquid without code.
What are the most common algorithmic trading strategies?
Trend following, mean reversion, breakout, statistical arbitrage and pairs, funding carry, market making and scalping, plus DCA, grid and execution algorithms such as TWAP that split large orders.
This is educational material, not financial advice. Any strategy can lose money, and leveraged perps can lose it quickly.
Automate your rule without code
Describe it in plain English or deploy a template. Senpi runs it 24/7, maker-first, with the stop attached from the first fill.
Related articles
What is revenge trading, and how do you stop it?
Revenge trading is trading bigger or faster to win back a loss. Why it happens, the recovery maths that makes it costly, what Hyperliquid data shows, and rules that stop it.
What is the Calmar ratio, and what is a good one?
The Calmar ratio divides annual return by max drawdown. Formula, how to read it, and the one-year Calmar ratio of BTC, ETH, SOL, HYPE, XRP and DOGE on Nov 9, 2026.
17 crypto trading strategies explained: momentum, mean reversion, breakout, carry, DCA, grid and more
17 crypto trading strategies, from the five core families (momentum, mean reversion, breakout, carry, market making) to day trading, DCA, grid and copy trading: the edge each trades, when it fails, the Senpi templates that run them, and live Hyperliquid readings on Nov 9, 2026.
How to read Hyperliquid market data: open interest, long/short ratio, funding and liquidations
What open interest, the long/short ratio, funding and liquidations tell you on Hyperliquid, where each number comes from, and how to read them together, with the ten largest perps on Nov 10, 2026.