Crypto trading bot API

Crypto trading bot API for Hummingbot, ccxt and Freqtrade

Run your bot on a venue that does not hold your money. The key trades and cannot withdraw, and the collateral stays in a wallet you control.

  • 257 ms
    median order round trip
  • 71 markets
    one margin balance
  • 1.4 billion
    traded on the venue
257 ms
Median order round trip
Production telemetry, 84,203 live perpetual orders, 30 days to 31 Oct 2026. p95 806 ms, p99 2.3 s. Measured from our API accepting the request to the venue acknowledging the order.
71
Perpetual markets
Crypto, US equities, FX, gold, silver and oil, all settled in USDC. Read the live list from GET /markets rather than this page.
100x
Maximum leverage
BTC, EUR, gold and silver. 75x ETH and SOL, 30x most crypto, 25x US equities. Caps are per market and exposed in the API.
1.4 billion
Traded on the venue
Cumulative US dollars since launch, all flow on the exchange including market making, milestone passed 12 Oct 2026.

From key to first fill

  1. 1

    Create a trading account

    Non-custodial and no identity check. The collateral sits in a wallet whose key you hold, and TRUE cannot sign for it.

  2. 2

    Create an API key

    Choose whether it may trade perpetuals, spot or both, and copy it once. It has no withdrawal permission at all.

  3. 3

    Point your bot at it

    Select the venue in Hummingbot or Freqtrade, change an exchange id in ccxt, or send a signed request straight from a terminal.

  4. 4

    Run small, then scale

    Read the fills and the funding entries back through the API and confirm your accounting agrees with ours before you size up.

import hmac, hashlib, time, json, requests

HOST, KEY, SECRET = "https://app.truefinance.ai", "tbk_...", "tbs_..."

def call(method, path, body=None):
    raw = json.dumps(body, separators=(",", ":")) if body else ""
    ts = str(int(time.time() * 1000))
    sign = hmac.new(SECRET.encode(), (ts + method + path + raw).encode(),
                    hashlib.sha256).hexdigest()
    return requests.request(method, HOST + path, timeout=20,
        headers={"X-TRUE-KEY": KEY, "X-TRUE-TS": ts, "X-TRUE-SIGN": sign,
                 "Content-Type": "application/json"},
        data=raw or None).json()

print(call("GET", "/api/bot/v1/account"))
print(call("POST", "/api/bot/v1/orders", {
    "market": "BTCUSDC", "side": "buy", "type": "limit",
    "size": 0.001, "price": "50000", "postOnly": True,
}))
A signed request and a first order. Three headers on every private call: the key id, unix milliseconds, and HMAC-SHA256 over timestamp, method, path and raw body. The timestamp must be within 30 seconds of GET /api/bot/v1/time, and the same signature is refused twice within 60 seconds.

Built for unattended trading

Long running, thousands of orders, nobody watching. These are the parts that decide whether a strategy survives its first month.

A key that cannot withdraw

A bot key is scoped to one account and to trading. With trade scope it can place, change and cancel orders on the account that created it, until you revoke it. It cannot withdraw, deposit, move money between accounts, touch another account, create keys or change settings, because there is no endpoint that would let it. The secret is shown once. Your daily loss limit and the emergency stop freeze the account at the exchange and stop bot orders with it.

Hummingbot, through the true_perpetual connector

A ready connector, true_perpetual, runs market making, directional scripts and V2 controllers against TRUE perps with a bot key and nothing else. The connector has been submitted upstream and the pull request is in review, so until it ships in a Hummingbot release you either clone the TRUE fork or copy the connector package into a stock checkout. It is pure Python, nothing to compile.

ccxt, and Freqtrade on top of it

A ccxt exchange class, truefinance and truefinance_async, ships as one file in the connector package: import it and pass apiKey and secret. The upstream ccxt pull request is in review, so today it is a drop-in class rather than a release you pip install. Freqtrade rides on the same class through a launcher that registers TRUE with ccxt and adds the exchange subclass, with futures, cross margin and leverage from the market list.

Or your own code, against common shapes

The endpoints are deliberately the ordinary exchange vocabulary, so a custom connector maps one to one: fetchMarkets to /markets, fetchBalance and fetchPositions to /account, createOrder to POST /orders, cancelOrder to DELETE /orders/{id}. Orders carry a clientOrderId that cannot double an order. Limits are 600 reads and 120 trading calls a minute per key, with X-RateLimit-Remaining on every answer and Retry-After past it. Ten keys per user.

Seventy one markets, one collateral pool

Crypto majors and alts, US equities including NVDA, TSLA, AAPL and MSTR, index products, gold, silver, oil and the major currency pairs, all as perpetuals on a single account with a single margin balance. One connector and one risk model across asset classes that would otherwise mean three brokers. Supported order types are LIMIT, MARKET and LIMIT_MAKER, one position per market, USDC collateral.

Leverage stated per market

100x on BTC, EUR, gold and silver. 75x on ETH and SOL. 30x on most other crypto, 25x on US equity perpetuals, and deliberately lower on newer listings while they build liquidity. The per market cap is in the API, so your bot should read it rather than assume a headline number.

Most venues ask you to deposit first and trust them second. TRUE does not take custody: you create a key on your own account, the collateral stays in a wallet you control, and the key can place orders but can never move funds out. This page gives you the numbers and the integration facts a systematic trader asks for before writing a line of code.

Latency, measured rather than claimed

Over the 30 days to 31 October 2026 TRUE accepted 84,203 live perpetual orders. Median total round trip, from our API receiving the request to the venue acknowledging the order, was 257 milliseconds. The 95th percentile was 806 milliseconds and the 99th was 2.3 seconds. The median time attributable to the venue itself was 256 milliseconds, which tells you most of the round trip is the exchange and very little of it is us. These are the real distributions from production telemetry over every order in that window, not a best case from an empty afternoon, and they are the numbers to design your timeouts and your retry logic against. A strategy that needs single digit milliseconds colocated next to a matching engine is not what this venue is for, and we would rather say that here than after you have built.

The TRUE bots screen, showing the bot keys table and the signed request quickstart in Python, Node and curl
Create a key on the bots screen and the quickstart next to it already signs requests: X-TRUE-KEY, a millisecond timestamp and an HMAC-SHA256 signature over method, path and body.

What non-custodial actually costs you

There is no deposit to be frozen and no withdrawal queue to be stuck in, and equally no support desk that can reverse a trade you asked for. That is the trade. Moving funds out requires a signature from the wallet you hold, which is why a leaked trading key cannot drain an account, and also why losing the wallet key is final in a way that a password is not. Funding payments settle at the venue into the position, so a framework that models funding separately, Freqtrade among them, will not see them; stoploss stays on the framework's side.

The TRUE bot API documentation, showing OAuth 2.1, MCP and Sequencer API chapters
The full reference sits in the same screen: OAuth 2.1 with PKCE, MCP keys, and the Sequencer API with signed requests for unattended trading.

Frequently asked questions

Can a bot key withdraw my funds?

No. With trade scope a key can place, change and cancel orders on the one account it was made for. It cannot withdraw, deposit, move money between accounts, touch another account, create keys or change settings. There is no such endpoint, and moving funds out needs a signature from the wallet you hold.

Is the Hummingbot connector official?

It is written and maintained by TRUE, and the pull request to include it in Hummingbot upstream is in review. Until that ships you clone the TRUE fork of Hummingbot, or run install.sh from the connector package to copy true_perpetual into a stock checkout. Either way you connect with a key id and a secret.

Does ccxt work with TRUE?

Through a drop-in exchange class, truefinance and truefinance_async, that ships as one file in the connector package. The upstream ccxt pull request is in review, so it is not yet in a ccxt release you can pip install. Once it lands, pointing existing ccxt code at TRUE becomes a change of exchange id.

How do I sign a request?

Three headers on every private call: X-TRUE-KEY with the key id, X-TRUE-TS with unix milliseconds, and X-TRUE-SIGN with hex HMAC-SHA256 over the secret and the timestamp, method, path and raw body concatenated. Path includes the query string. The timestamp must be within 30 seconds of GET /api/bot/v1/time, and a signature is refused if it is seen twice within 60 seconds.

What latency should I design for?

Median 257 milliseconds and 95th percentile 806 milliseconds for order round trip, measured over 84,203 live orders in the 30 days to 31 October 2026. Set timeouts against the 95th percentile rather than the median, and expect the tail to be dominated by the venue rather than by our API.

What are the rate limits?

600 reads and 120 trading calls a minute per key. Every answer carries X-RateLimit-Remaining, and going past it returns 429 with Retry-After. Ten keys per user, so a strategy that needs more headroom gets its own key rather than sharing one.

Do I have to pass KYC before I can run a bot?

No. The account is non-custodial and trading does not require an identity check. You are responsible for whether trading perpetuals is permitted where you live.

Can I run several bots on one account?

Yes, with one caveat worth planning for: they share a margin balance, so two strategies that both size against free collateral can starve each other. Separate accounts give separate collateral pools and separate keys.

Where is the documentation?

The Bot API reference is at docs.truefinance.ai, covering keys and scopes, signing, order types, market data, streams, the per market leverage and tick size definitions, and the connector packages for Hummingbot, ccxt and Freqtrade.

Related pages

Create a key and send one order

Non-custodial, no KYC, on iOS, Android and the web.

Try TRUE AI →
Crypto Trading Bot API: Hummingbot, ccxt, Freqtrade | TRUE