Skip to content

Hummingbot v2.18.0 Release Notes

Released on November 20, 2026

Repository Description GitHub Release DockerHub Release
Hummingbot Client Core Client v2.18.0 changelog version-2.18.0
Gateway DEX Middleware v2.18.0 changelog version-2.18.0

Note

Other Hummingbot repositories such as Condor and Hummingbot-API follow a continuous deployment model without fixed version releases. Use the main branch for these repositories.

How to Install / Update

  • Hummingbot Client: See the Hummingbot Client Quickstart โ€” upgrade to v2.18.0 for Bitget Unified Trading Account support, the Derive v3 API, and two remote-code-execution fixes. Derive users: the connector now asks for the wallet that owns the account (v3 has no separate "Derive Wallet") โ€” if you entered a different address before, re-run connect derive / connect derive_perpetual.
  • Gateway: See the Gateway Installation guide โ€” upgrade to v2.18.0 for safer Solana sends, redacted RPC keys, and a round of connector fixes. Before you upgrade: a GATEWAY_API_KEY shorter than 16 characters now stops Gateway at startup, and balance keys changed for tokens requested by address.
  • Condor + Hummingbot API: See the Condor Quickstart or full documentation at condor.hummingbot.org. Pull the latest main branches together โ€” this cycle adds the Agent Hub, moves Condor to MCP 2.x / pydantic-ai 2.x, and hardens the update flow.

๐Ÿช Agent Hub: Clone and Publish Agents

Condor now connects to Botcamp's catalogue of published agents. Pull an agent someone else built, including the top strategies from the Agent Builders Cup, into your own Condor, or publish one of yours for others to pull. Open it from the Agent Hub card at the bottom of the Agents page, or go to /hub.

  • Connect once โ€” Open botcamp.xyz/connect while signed in, and paste the one-time code into the Hub. The link covers the whole install and lasts 90 days; no pasted API token.
  • Review before installing โ€” Every file that can run code is named before anything is written. Once installed, everything the agent declares arrives enabled and ready, and nothing starts until you start it.
  • Pinned versions โ€” An installed agent stays on the exact version you accepted. A newer version shows up as an update you review the same way, and copies you installed are marked if Botcamp later delists the agent.
  • Publish yours โ€” Choose an agent on the Publish yours tab. Botcamp checks its structure, runs an AI review, and an admin approves it before it's listed. Withdrawing removes the listing but doesn't recall copies people already pulled.
  • Agent bundles โ€” An agent also travels as one file: export a bundle, import it, and review its contents before anything runs.

See Cloning and Publishing Agents for the full guide.

PRs: condor #290 | condor #314 | condor #285 | condor #293 | condor #294 | condor #295 | condor #300

๐Ÿฆ… What's New - Condor and Hummingbot API

๐Ÿ“Š Agent Run Screen & USD PnL

The web dashboard's agent views are rebuilt around one run screen, shared by the chat side panel and the agent page, with a single "Now" card for vitals, the session report, and the PnL chart.

  • PnL in USD โ€” Agent PnL is converted to USD per controller before it is summed. A BTC-BRL agent's R$ PnL had been shown behind a "$".
  • Tick review โ€” Hover a beat in the tick strip to see its summary and every action with its result; step between snapshots with โ€น โ€บ or the arrow keys.
  • Session vs lifetime โ€” Session and lifetime PnL are reported side by side, each tagged with the instances it covers, and every stop emits a close-out report saying what it closed and what it left behind.

PRs: #244 | #267 | #269 | #285

๐Ÿ›ก๏ธ Agent Safety: Lessons from the Agent Builders Cup

Running dozens of agents live during the Agent Builders Cup surfaced controls that quietly did not do what they reported. This cycle fixes them:

  • Capital protection โ€” Delegated runs now pass through the risk gate, bot deploys are bounded by the capital they trade rather than the cap they declare, and emergency shutdown actually stops the bots. (#289)
  • Correct exposure โ€” Executor rows were sized in base units for position and order executors, so an LTC trade worth $200 read as 2.9 and a $0.70 loss tripped the kill switch as a 24% drawdown, while BTC positions effectively bypassed the position cap. Exposure is now always measured in quote. (#260)
  • Code guard โ€” An agent snippet can no longer freeze or exit Condor: timeouts interrupt synchronous code, scans of /, /proc, /sys, and /dev are refused, exit() becomes an ordinary error, and a dry run refuses to execute Python. (#281 | #289)
  • Liveness and adoption โ€” A bot whose liveness can't be read is no longer treated as dead, a new session adopts a dead predecessor's running executors, and "no reading" is no longer confused with a real zero. Session PnL and volume no longer go wrong when a bot's strategy dies. (#285 | #281)
  • Delegation contract โ€” Delegated workers receive their controller_id, and manage_bots deploys no longer require max_global_drawdown_quote. (#307)
  • Adaptive Grid Trader โ€” Restricted to LONG, SHORT, and HOLD; requires confirmed ONEWAY mode, prevents same-pair grid stacking across sessions, and verifies the exchange-applied leverage. (#288)

๐Ÿ”„ Runtime & Update Flow

  • MCP 2.x and pydantic-ai 2.x โ€” Both MCP servers and the agent client move to the 2.x SDKs with the tool surface pinned unchanged, and an abandoned turn (a WebSocket drop or page reload) no longer holds the backend's request slot. (#265)
  • Hardened updates โ€” The update flow closes 71 failure scenarios across Condor, Hummingbot API, and the shared git machinery. The frontend now builds beside the live bundle and swaps in only on success, so a failed build no longer leaves you without a dashboard. (#243) Open tabs reload themselves once the relaunched server answers, instead of serving the old bundle. (#258)
  • Tool retries โ€” A failed tool call is retried up to 3 times (configurable) instead of once, so one malformed call no longer ends an unattended agent's tick. (#329)

Other Updates

  • condor #259 โ€“ Added make refresh-codex to update the Codex ACP bridge when it rejects newer models Thanks to mlguys! ๐Ÿ™
  • condor #281 โ€“ Replaced the notification bell's "Mark all read" with "Clear all"
  • condor #287 โ€“ Fixed Settings โ†’ Gateway start, stop, and restart failing silently, so Hummingbot API's error message now shows in the tab
  • condor #336 โ€“ Removed local dev-tooling files from the repository
  • condor #337 โ€“ Fixed config.yml writes from one process being invisible to, and later overwritten by, the dashboard and MCP server processes
  • hummingbot-api #235 โ€“ Restored the rate oracle config endpoints under /bot-orchestration/rate-oracle/*, scoped to the credentials profile each bot copies at deploy, and added GET /system/info reporting the API and Hummingbot versions and the running container image
  • hummingbot-api #246 โ€“ Fixed perpetual position mode to be read from the exchange at connector creation and switched without a trading_pair, so a hedge account no longer shows ONEWAY after a restart
  • hummingbot-api #253 โ€“ Added idempotent order placement, limited Docker stop/start/clean to API-owned containers, refused to bootstrap EMQX auth without a broker password, aborted startup on an unexpected migration error, expired stale pushed Gateway prices, and gated image publishing on CI
  • hummingbot-api #254 โ€“ Removed stale .gitignore rules

๐Ÿฆ What's New - Hummingbot Client

๐Ÿ”Œ Bitget Unified Trading Account (UTA)

The existing bitget and bitget_perpetual connectors now support Bitget's Unified Trading Account. Each connector reads the account type from the API key at startup (GET /api/v3/account/assets) and logs it โ€” Bitget account mode: Classic. or Bitget account mode: Unified Trading Account. โ€” then uses the V3 API for UTA and the existing V2 code for Classic. Config keys are unchanged, so Classic users keep their setup and UTA users only need a key created under the UTA.

  • Shared public data โ€” Trading rules, order books, trades, tickers, and funding come from the V3 public API for both account types. Spot minimums now read minOrderQty, fixing a DivisionByZero on pairs with a zero size step.
  • UTA correctness โ€” Order book seq/pseq gap detection with automatic resnapshot, account-specific VIP/BGB fee rates, reduceOnly on closes in one-way mode as well as hedge mode, paginated position and fill reads, and a WebSocket login that re-samples the server clock after the host sleeps.
  • No more double-counted balances โ€” On a UTA, spot and perpetual are two views of one wallet, so the balance commands showed twice the real equity. Connectors backed by the same account now share an account_group_id and are counted once. This also fixes the same double count on Bybit. Every other connector behaves as before.

See Bitget for documentation on how to use this connector.

PRs: #8343 | Thanks to isreallee82! ๐Ÿ™

๐Ÿ”บ Derive v3 API

The derive (spot) and derive_perpetual connectors move from the v2 API at api.lyra.finance to the v3 API at api.derive.xyz/v3, verified live on the v3 testnet with signing pinned to Derive's official golden vectors.

  • Session keys โ€” The wallet is now the owner's own address. At startup the connector checks which wallet the session key is registered to and reads its expiry, so a key paired with the wrong address gets a clear error instead of a bare 14000/14026. Trading needs a key scoped to trade:orderbook:perp / trade:orderbook:spot (or higher).
  • Order lifetime โ€” v3 expires an order when its signature does. Resting orders are signed for up to 119 days, capped a minute before the session key expires.
  • Long-standing bugs fixed โ€” Every perpetual fill was recorded as a CLOSE (an enum compared against a string), fills were silently dropped, LIMIT_MAKER orders were sent as plain gtc (so post-only orders could take), market IOC orders priced at the bare mid never filled, reduce_only was always False, and fully closed positions were never removed. Spot cancels, balance updates, and the rate source are fixed too.

See Derive for documentation on how to use this connector.

PRs: #8491 | Thanks to isreallee82! ๐Ÿ™

๐Ÿ”’ Security Fixes

Two connectors evaluated data from the network as code. Both are fixed; upgrade if you run either connector.

  • Remote API order book โ€” RemoteAPIOrderBookDataSource called pickle.loads() on an HTTP response, which allows remote code execution. The data source is removed. (#8561)
  • Foxbit โ€” ws_data_to_dict() called eval() on WebSocket data. It now parses JSON. (#8562)

โš™๏ธ Core & Strategy V2

  • Rate-limit race โ€” AsyncThrottler.acquire() checked capacity and recorded the task under two separate lock holds, so a burst of concurrent requests could all be admitted against the same free capacity and exceed an exchange's rate limit. Both steps now run under one lock. (#8461) Thanks to mnaamani! ๐Ÿ™
  • Memory leak in event listeners โ€” PyRef's assignment operator never released the reference it replaced, so every pass over a listener set leaked one reference per listener. Long-running bots grew by about 10,000 objects an hour until they ran out of memory; with the fix, memory stays flat. (#8444) Thanks to Janche! ๐Ÿ™
  • LP volume on POSITION_HOLD โ€” An LP executor that closed as POSITION_HOLD had its fee-derived volume replaced by the net token conversion of the withdrawal (about 65 quote could drop to about 1). Volume is now preserved in live reports, cached performance, and restored receipts. (#8496) Thanks to mlguys! ๐Ÿ™
  • Backtest stop-loss pricing โ€” PositionExecutorSimulator booked a stop-loss exit at the bar's close, so a bar that wicked through the stop and closed above it reported a STOP_LOSS with a gain. Exits are now priced at the stop, or at the bar's open when price gaps past it, so backtests no longer understate losses. (#8507) Thanks to zorionarrillaga! ๐Ÿ™
  • DCA backtests โ€” DCAExecutorSimulator no longer indexes past the final level when stop_loss is omitted. (#8558)

๐Ÿ› ๏ธ Connector Updates

  • dYdX v4: V2 strategies such as bollinger_bands and pmm_simple no longer crash with Mnemonic words count is not valid (0) when they create a non-trading dYdX connector for market data (#8477). Thanks to naufalfx805-source! ๐Ÿ™ Repeatedly setting ONEWAY position mode no longer floods the logs with errors (#8560).
  • OKX Perpetual: The user-stream ping sent a Python set literal instead of JSON, crashing the listener about every 30 seconds. (#8550)
  • Kraken: WebSocket fill timestamps are cast to float, fixing a crash in PMM Mister. (#8559)
  • Lighter: Updated the Lighter SDK from 1.0.8 to 1.1.2. (#8435) Thanks to andrewgbell! ๐Ÿ™

Other Updates

  • #8536 โ€“ Fixed the CI "Install pre_commit" step failing with conda: command not found whenever the build cache missed

๐ŸŒ‰ What's New - Gateway

Gateway v2.18.0 is a hardening release: no new connectors, but changes to how Solana transactions are sent, what Gateway reveals about your RPC provider, and fixes across Raydium, PancakeSwap, Uniswap, Orca, Meteora, and Jupiter. Ten of the fixes came from community contributors.

๐Ÿš€ Solana Sends: Preflight and Rebroadcast

Every Solana transaction Gateway sends now goes through one path that simulates it first and rebroadcasts it until it lands or expires.

  • Preflight โ€” A transaction that would fail is refused with a 400 and the program's reason before any fee is paid. Previously it was broadcast and failed on-chain.
  • Rebroadcast โ€” A pending transaction is re-sent every 2 seconds until it confirms or its blockhash expires, so a transaction dropped by one RPC node still has a chance to land.
  • Timeouts carry the signature โ€” If the transaction is not confirmed in time, Gateway answers 504 TRANSACTION_TIMEOUT with the signature. The transaction may still land, so check the signature before retrying. A rate limit that arrives after the broadcast is reported the same way, not as 429 RATE_LIMITED, because retrying it could send the trade twice.

RPC usage

A pending transaction adds two RPC calls every 2 seconds. On a load-balanced RPC with a lagging node, preflight can answer Blockhash not found. A dedicated RPC provider avoids both problems.

PRs: #735 | #750

๐Ÿ”’ Security: API Key, Lockout and Redacted RPC URLs

  • RPC keys no longer leak โ€” GET /chains/{chain}/status, route errors, and every log line now show an RPC URL as scheme and host only (https://mainnet.helius-rpc.com). Before, the Solana status route returned the provider URL with its API key, and that route does not require the Gateway API key. Log lines lose the path of every URL as a result. (#746) Thanks to myhubstat! ๐Ÿ™
  • Short API keys are refused โ€” A GATEWAY_API_KEY shorter than 16 characters stops Gateway at startup. Set a longer key before upgrading.
  • Failed-attempt lockout โ€” After 10 wrong tokens in 15 minutes, further wrong attempts from that source get a 429. A correct token is always accepted, so one misconfigured client cannot lock out others behind the same address. Tune it with GATEWAY_AUTH_FAIL_MAX and GATEWAY_AUTH_FAIL_WINDOW_MS. (#663) Thanks to ipezygj! ๐Ÿ™
  • Config checks โ€” Setting defaultNetwork or defaultNetworks to a network the chain has no config for is refused (#706), and whitespace around a saved nodeURL is trimmed (#705). Thanks to ipezygj! ๐Ÿ™

๐Ÿ’ฐ Balances Keyed by What You Asked For

POST /chains/{chain}/balances now reports each balance under the name it was requested with, on both chains:

You ask for Key in balances
A symbol (USDC) The token list symbol
An address or mint That address, exactly as sent
Nothing (tokens omitted) Each token's symbol

The response also gains a tokens list giving the symbol and address behind every key, so a client can match balances either way.

Behavior changes

  • Ethereum: a token requested by address used to be keyed by its symbol. It is now keyed by the address.
  • Wrapped SOL: requesting the wrapped-SOL mint (or WSOL) returns the wallet's wrapped-SOL token account, not its native balance, the same way a WETH address returns WETH. Request SOL for the native balance.

The Hummingbot client and Hummingbot API request balances by symbol and are not affected.

Unlisted Solana mints now return their real balance instead of zero.

See Chains for the schema.

PRs: #735 | #750

๐Ÿงพ Wallet Activity and Infura for Solana

  • Wallet activity โ€” New GET /chains/solana/transactions returns a wallet's recent transactions, each classified as a swap, open or close position, add or remove liquidity, fee collection, deposit, or withdrawal, with the wallet's balance changes. Solana mainnet-beta only. See Chains.
  • Infura on Solana โ€” Set rpcProvider: infura in conf/chains/solana.yml to use the same infura API key you use for EVM networks. See RPC Providers.
  • Pools and tokens by either name โ€” DELETE /tokens/{symbolOrAddress} and GET|DELETE /pools/{tradingPairOrAddress} accept a symbol or an address. (#710) Thanks to ipezygj! ๐Ÿ™
  • CNDR โ€” Condor (CNDR) is in the default Solana mainnet-beta token list.

PRs: #735

๐Ÿ› ๏ธ Connector Updates

  • Raydium: AMM and CPMM pool data, quotes, and positions are read from chain instead of the Raydium API, so they reflect the pool's current state. AMM priceImpactPct was wrong on both sides (about 100x too high on SELL) and is fixed; CPMM still reports 0. CLMM liquidity is returned as an exact decimal string (#743). Thanks to AcevedoK! ๐Ÿ™ An AMM quote now makes 6 to 8 RPC calls. See Raydium.
  • PancakeSwap (Solana): Removing liquidity, collecting fees, and closing a position no longer fail for a wallet with no wrapped-SOL token account (#745). Thanks to myhubstat! ๐Ÿ™ See PancakeSwap.
  • PancakeSwap (EVM): Fixed a BigInt conversion error in CLMM routes.
  • Uniswap: Closing a CLMM position estimates its gas instead of using a fixed 400,000, which some positions exceeded. If the node cannot estimate, the close is refused and nothing is sent (#709). Thanks to ipezygj! ๐Ÿ™ See Uniswap.
  • Orca: tvlUsdc, yieldOverTvl, and fetch-pools tvl are null when Orca does not report them, instead of 0.
  • Meteora: Listing positions reports the real RPC error instead of an empty result, and a wide DLMM open whose first chunk fails closes the empty position it created.
  • Jupiter: A 401 from Jupiter is reported as an API key problem, not as "no route found" (#707). Thanks to ipezygj! ๐Ÿ™

Other Updates

  • #708 โ€“ Fixed very small and very large amounts being converted to raw units in exponent notation Thanks to ipezygj! ๐Ÿ™
  • #750 โ€“ Several 500 responses are now 400 or 404 (malformed address, pool not found), and a failed pool read is a 500 with its cause instead of "not found"
  • #750 โ€“ execute-quote only accepts a quote at the connector that priced it
  • #735 โ€“ Deduplicated the Uniswap SDK packages so the Universal Router builds against one v4-sdk