Best crypto trading bot frameworks in 2026

Choose a bot framework by which event changes the next decision. A completed candle often suffices for trend signals. A quoting strategy needs updates to inventory and working orders while the candle remains open. A custom event-driven model may need the order book as part of the historical input.

Framework A good first experiment Inspect before going further
Freqtrade Backtest a candle-based strategy and reproduce its signals in dry-run Closed candle timing, look-ahead checks, the venue’s order rules and the configured fill assumptions.
Hummingbot Run a compatible market-making controller in a paper environment Connector capabilities, refresh rules, position limits and the action after an incomplete pair of fills.
NautilusTrader Replay historical quotes, trades or order-book updates in an event-driven strategy Whether the historical data and target adapter cover the same instrument, book depth and order types.

Freqtrade backtesting · Hummingbot controllers · Hummingbot paper mode · NautilusTrader event inputs

Give the first trial a failure case

A candle system should handle one delayed data refresh without submitting duplicate entries. A market-making trial should deliberately fill just one side. Verify what the bot does when the order price is stale and when its inventory approaches the allowed limit. In an event engine, replay one book gap and check that trading only resumes once the data is usable. Store the input and decision log before using profitability as a comparison.

The dashboards below illustrate the products. Their displayed metrics are separate from the exercise.

Screenshots and examples

FreqUI chart and trade monitoring view
Freqtrade · FreqUI chart and trade monitoring view Source
Example controller report in Hummingbot Dashboard
Hummingbot · Example controller report in Hummingbot Dashboard Source
Report from a simulated BTC/USD backtest in NautilusTrader
NautilusTrader · Report from a simulated BTC/USD backtest in NautilusTrader Source

Stress-test the economics of a two-sided quote

Spread, fees and one-sided inventory in the same fixture

Net round trip = sold value − bought value − fees on both fills.
Results from the example
Quoted spread, bpGross, USDFees, USDBoth fills, USDBuy only at later mark, USD
8 4.0 8.0 -4.0 -11.9984
16 8.0 8.0 0.0 -9.9968
25 12.5 8.0 4.5 -7.745
40 20.0 8.0 12.0 -3.992
Net outcome with two fills or a single buy StockSharp JS-Charts

The synthetic order quotes symmetrically around 100 USD for 50 units on each side. Each fill costs 8 basis points of its own notional. With both orders filled, break-even spread is 16 basis points. At 25 basis points the gross capture is 12.50 USD and the net is 4.50 USD. If only the buy fills and the market is marked at 99.80, the same quote shows −7.745 USD after the one fee. The last column includes that mark-to-market change and assumes no closing fill.

Save an inventory limit beside the signal

A two-sided outcome is conditional on the fills. Decide whether an incomplete pair should leave the inventory exposed, amend the next quote, or trigger a separate hedge in your test. Include the actual policy of the strategy and log which route was taken. Changing a quote when the market moves may change its queue priority. Use the exercise as a check on the ledger before interpreting any historical fill model.

Reproduce the result in Python

import json
from decimal import Decimal as D


MID = D(100)
QUANTITY = D(50)
FEE = D("0.0008")
AFTER_BUY_MARK = D("99.80")


def outcome(spread_bps):
    offset = MID * D(spread_bps) / 20_000
    buy, sell = MID - offset, MID + offset
    gross = QUANTITY * (sell - buy)
    fees = QUANTITY * (sell + buy) * FEE
    mark_after_buy = QUANTITY * (AFTER_BUY_MARK - buy) - QUANTITY * buy * FEE
    return gross, fees, gross - fees, mark_after_buy


def run():
    rows = [[spread, *(round(float(value), 4) for value in outcome(spread))]
            for spread in (8, 16, 25, 40)]
    assert outcome(16)[2] == 0
    assert outcome(25)[2:] == (D("4.50"), D("-7.745"))
    assert rows[0][3] < 0 < rows[-1][3]
    return rows


if __name__ == "__main__":
    print(json.dumps(run()))

Vary the fee and the post-fill mark in the script to find the sensitivity for your own inputs. Track partial fills without double-counting · Measure the cost of a fill.