Agentic tradingCryptoDevelopersRisk

What developers get wrong about crypto trading with AI agents

Developers often assume AI agents handle crypto volatility automatically. In practice, stock trading guardrails must be explicitly configured for crypto, and trading can lose everything.

By the Felix team9 min read
Key takeaways
  • 01Non-custodial infrastructure prevents theft but does not prevent trading losses, so budget caps and position limits remain essential.
  • 02Twenty-four-hour crypto markets remove natural circuit breakers, making kill switches and continuous monitoring more important than in traditional markets.
  • 03Paper trading tests logic but does not simulate live slippage, partial fills, or liquidity depth, so results should not be treated as performance forecasts.
  • 04The API sizes orders in US dollars, yet underlying leverage on perpetual futures can multiply notional exposure far beyond the stated budget.
  • 05Safety controls such as scoped keys, exit plans, and kill switches are at least as critical for crypto as they are for stocks and options.

Developers building AI agents for crypto trading often assume that automation, non-custodial wallets, and twenty-four-hour markets reduce the need for explicit risk controls. In practice, crypto markets introduce complications around leverage, funding rates, and fragmented liquidity that make agentic execution less predictable than manual trading. The same infrastructure that protects stock and options trades must be carefully adapted for perpetual futures and spot crypto, and trading can lose money, including the entire balance. Assuming that crypto is simpler because it is digital and always open is usually the first mistake.

Does non-custodial access mean the agent cannot lose funds?

Non-custodial infrastructure means that funds remain in a wallet the owner controls at all times. The agent receives scoped keys that let it spend within predefined limits, but it can never withdraw funds to itself or to an unapproved external address. Withdrawal addresses are owner-approved only. This architecture is effective against theft, yet many developers mistakenly treat it as protection against trading losses.

The distinction matters because a scoped key can still direct the full budget cap into a leveraged perpetual futures position that gets liquidated. If you allocate a ten thousand dollar budget to an agent and grant it access to perps markets, the agent can lose that ten thousand dollars even though it cannot send the money to a private wallet. The loss is real, irreversible, and can happen in minutes during volatile conditions.

Developers often skip setting position limits or exit plans because they believe the non-custodial design inherently limits damage. It does not. How to set guardrails for a trading agent without giving up custody explains how to configure budget caps and scoped keys so the agent operates within a hard boundary. Without these boundaries, the agent is free to deploy the entire budget according to its strategy, and if that strategy fails, the money is gone. Trading can lose money, including everything.

Is crypto simpler for agents because markets never close?

Continuous markets seem ideal for automation. An agent can react to news, rebalance portfolios, and capture opportunities at any hour without waiting for an opening bell. This logic leads developers to assume that crypto is easier to automate than stocks or options, which have fixed sessions and overnight gaps.

The reality is that twenty-four-hour markets remove natural circuit breakers. There is no daily close to force reconciliation, no weekend pause to review logs, and no batch auction to dampen volatility. If an agent encounters an edge case or a prompt loop at three in the morning, it will continue executing until it hits a hard limit or the account is depleted. A bug that might cause one bad trade in a stock session can cause ten consecutive trades in a crypto session before a human wakes up.

Liquidity is also cyclical. An order that fills cleanly during peak hours may face wide spreads and thin books during off-peak periods. Developers testing during high-volume windows often deploy agents that fail when liquidity drops. Additionally, perpetual futures accrue funding rates continuously. A position that looks profitable on price action can lose money steadily through funding payments, especially if the agent holds the position for days without checking the rate.

You should treat continuous markets as a risk multiplier, not a convenience. How kill switches protect trading agents from runaway losses in 2026 describes how to build a panic switch that flattens positions and revokes access automatically. Without that switch, the absence of market closures becomes a liability rather than an advantage.

Why do paper trading profits disappear in live execution?

Paper trading exists for testing; live trading requires explicit owner authorization of a key. Developers often build agents against paper balances, see consistent simulated profits, and conclude that the strategy is ready for live capital. This transition is where the second wave of misconceptions appears.

In paper mode, the system simulates fills at theoretical prices, usually mid-market, without slippage, partial fills, or rejections. The agent receives instant confirmation that its entire order executed at the desired price. In live crypto markets, order books have depth limits, spread varies by venue, and large orders may walk the book. Suppose an agent decides to buy five thousand dollars of a token. In paper mode, it fills completely at the quoted price. Live, the order book might only support one thousand dollars at that price, and the remainder fills at progressively worse prices. The agent ends up with an average fill price far from its model, or worse, a partial position that its strategy did not design for.

Latency adds another layer. Crypto venues have rate limits and occasional API lag. An agent that sends orders in rapid succession during a paper test may find that live requests are throttled or arrive out of sequence. The API normalizes venue-specific contract math so that you reason in plain US dollars, but it cannot manufacture liquidity or guarantee fill quality.

Before authorizing a live key, you should test how the agent handles partial fills, rejected orders, and delayed responses. How an AI agent executes an order from decision to fill walks through the full execution path and the points where live markets diverge from simulation. Treat paper trading as a logic test, not a performance forecast.

Do agents automatically understand leverage and position sizing?

Orders are sized in plain US dollars; the API normalizes venue-specific contract math. This abstraction is one of the main reasons developers choose a unified API, but it also creates a dangerous blind spot when the underlying market is leveraged.

A developer might tell the agent to allocate five hundred dollars to a trade and assume the risk is five hundred dollars. On a perpetual futures venue, however, that five hundred dollars might control five thousand dollars of notional exposure at ten times leverage. The agent reasons in the dollar budget you provide; it does not automatically infer that leverage multiplies risk. If the market moves five percent against a five thousand dollar notional position, the loss is two hundred and fifty dollars, or half the allocated budget, even though the developer only intended to risk five hundred dollars in absolute terms.

This confusion is less common in spot crypto, where one thousand dollars buys approximately one thousand dollars of asset. But in perps, the notional exposure can be many multiples of the budget. If you set a ten thousand dollar budget cap but allow the agent to trade perps with twenty times leverage, a single position can control two hundred thousand dollars notional. A small adverse move can liquidate the margin or trigger a margin call that forces the agent to close at a loss.

Developers must set position limits that reflect notional exposure, not just order size. You should also define exit plans that close positions before liquidation thresholds. How developers manage multi-market portfolios with agents covers how to think in dollar terms across spot, perps, and options without letting venue-specific leverage silently inflate risk. Never assume the agent will self-regulate leverage because it will not.

Are safety controls only necessary for stocks and options?

There is a persistent misconception that crypto markets are somehow self-regulating because of blockchain transparency or because wallet limits prevent catastrophic errors. Developers port stock trading logic to crypto and assume the same guardrails are sufficient. They are not.

Perpetual futures introduce funding rates, a cost that accrues continuously while a position is open. A stock might gap overnight, but it does not charge you an hourly fee for holding it. A perp can bleed money through funding even when the price moves in your favor. If the agent does not monitor or account for funding, it can hold a position that is directionally correct but economically negative.

Liquidation is another crypto-specific risk. In stocks, a margin call usually gives you time to deposit more capital. In perps, liquidation is automatic and instant. The agent can go from a funded account to a flattened position with no remaining balance before any human notices. This means safety controls like scoped keys, budget caps, position limits, exit plans, and a panic or kill switch that flattens and revokes access are at least as important for crypto as they are for traditional markets.

You should also consider that crypto venues often have higher volatility and lower liquidity than major stock brokers. A stop-loss order that works reliably in a stock broker may be skipped or filled at a worse price in a thin crypto order book. The safety architecture must be tighter, not looser, when the agent trades crypto.

How do agents connect to crypto markets through the API?

Agents connect through MCP tools, such as Claude, Cursor, and other MCP clients, or through the REST API. Developers sometimes assume that the abstraction layer removes all venue complexity, and that connecting an agent is as simple as pointing it at a single endpoint. The connection is straightforward, but the configuration is not automatic.

One key and one API unify stocks, crypto, perps, options, and prediction markets. You define the market type, the budget in US dollars, and the constraints in the same schema regardless of whether the agent trades a stock or a perpetual future. The exact request schema is in the docs; the shape looks like this.

{
  "api_key": "YOUR_KEY",
  "market_type": "crypto",
  "budget_usd": 1000,
  "position_limit_usd": 5000,
  "action": "open_long"
}

This illustrative payload shows how you reason in dollars rather than native units. However, the developer still needs to handle error states, retry logic, and the distinction between paper and live keys. Paper trading exists for testing; live trading requires explicit owner authorization of a key. You cannot rotate from paper to live by changing a boolean flag. The authorization step is deliberate, and it exists so that no agent can accidentally begin committing real capital because of a configuration typo.

Whether you use an MCP client or a direct REST integration, you remain responsible for prompt design, context window management, and the hard limits that constrain the agent. The API normalizes the math, but it does not normalize market behavior.

Developers who treat crypto as a simpler version of traditional markets often discover that the opposite is true. The combination of leverage, continuous trading, and variable liquidity means that agentic crypto trading demands stricter guardrails, not looser ones. Build the safety layer first, test thoroughly in paper mode, and authorize live keys only after you have verified that the agent respects dollar budgets, position limits, and kill switches. Trading can lose money, including everything.

Frequently asked questions

Can an AI agent steal my crypto if it trades non-custodially?

No. The agent operates within a wallet you control and cannot withdraw funds to an external address. It can only spend within the budget and position limits you define. However, it can still lose that allocated money through trading, including liquidation.

Does paper trading account for crypto slippage and partial fills?

Paper trading simulates execution at a theoretical price to test logic. It does not replicate the live order book depth, spread, or partial fills you will encounter in real markets, especially for low-liquidity tokens or during volatile periods.

Why does my agent exceed its intended exposure on perpetual futures?

The API sizes orders in plain US dollars, but the underlying venue applies leverage. A one thousand dollar order at ten times leverage controls ten thousand dollars notional. You must set position limits and budget caps to constrain notional exposure, not just order size.

Is a kill switch necessary for a small crypto trading bot?

Yes. A kill switch flattens positions and revokes access. In twenty-four-hour markets, a small bug can compound losses while you are offline. The switch acts as a circuit breaker regardless of portfolio size.

What is the difference between authorizing a paper key and a live key?

Paper keys run against simulated balances for testing. Live keys require explicit owner authorization before the agent can commit real funds. The authorization step is deliberate and separate from API connection setup.

Do I need different guardrails for crypto than for stocks?

Yes. Crypto perpetual futures introduce funding rates and liquidation risk that stocks do not. You should configure funding-rate awareness, liquidation buffers, and tighter position limits in addition to standard budget caps.

Give your agent a key.

One key to trade stocks, crypto, perps, options, and prediction markets. Live after owner authorization.

Keep reading

Not a brokerage, exchange, or investment adviser. Not investment advice. Trading involves risk, including total loss.