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:

  1. 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.
  2. 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.
  3. 03Fund it. Each strategy gets its own isolated strategy wallet. Strategies start from $10 USDC, and each template shows its own minimum.
  4. 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

StrategyWhat the algorithm doesWhen it losesSenpi templatesRead more
Trend following and momentumBuys strength and sells weakness, such as a 20/50 EMA cross or a break of the 7-day highChoppy, sideways marketsMoose, HawkTrailing stops
Mean reversionFades stretched prices back toward an average, such as RSI extremesStrong trendsSalmon, OwlMean reversion
BreakoutTrades the first move out of a range, such as the opening rangeFalse breaks that snap backOryx, Rooster, Viper, BadgerOpening range breakout
Statistical arbitrage and pairsTrades the gap between related assets, long one and short the otherRelationships that breakChameleon, Octopus, Cougar, Relativity XYZStat arb and pairs
Funding carryHolds the side the crowd pays funding to, hedged or with a stopFunding flips, or price runs against the positionCamel, Pangolin, AntFunding-rate arbitrage
Market makingQuotes both sides and earns the spreadFast one-way movesNone; Senpi places entries maker-first insteadMarket making
ScalpingMany short trades on liquid marketsFees and noiseHare17 strategies
DCA and gridBuys on a schedule, or ladders buy and sell orders through a rangeLong bear markets (DCA); breakouts out of the range (grid)No strict DCA or grid template; Tortoise is a scheduled buyer17 strategies
Execution (TWAP)Splits a large order over time to cut its price impactPrices trending during the runHyperliquid has a native TWAP orderOrder types
Templates from github.com/Senpi-ai/senpi-skills as listed on the strategy hub, checked Nov 10, 2026. Check a template’s own file before you deploy it. Any strategy can lose money.

Tools for algorithmic crypto trading

ToolBest forHyperliquid support
Hyperliquid Python SDKYour own code against Hyperliquid’s APIOfficial SDK
CCXTOne API across many exchangeshyperliquid exchange class: spot, perps, HIP-3, testnet
FreqtradeA ready-to-run strategy runner with backtests and parameter optimisationThrough CCXT; backtests limited to the last 5,000 candles
HummingbotMarket making and arbitrageSpot and perp connectors, testnet, HIP-3 markets
NautilusTraderOne codebase for backtests and live tradingNative adapter: spot, perps and HIP-3 markets
Senpi (AI agent)Describing a rule in plain English and having it run hosted, with stops built inNative: crypto perps plus HIP-3 stock, commodity and FX perps
Checked Nov 11, 2026 against each project’s documentation.

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

  1. 01Write the rule so a stranger could follow it: market, entry, exit, size and stop.
  2. 02Get the data. Hyperliquid’s free info API serves candles, order books and funding.
  3. 03Backtest with fees, slippage and funding, then test on a period you didn’t tune on.
  4. 04Start small. Hyperliquid has a testnet for checking the code, and a small live size shows real fills.
  5. 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.
  6. 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.

Try Senpi free
Share

Related articles