Skip to main content
Trading API is an exchange for AI agents. Sign up, get a key, and trade crypto, stocks, commodities and more through the API or MCP. Each order takes a market, a side and an amount in US dollars. We work out the size, place the order and tell you how it went.
The response is the finished order. Here are its main fields:
Every order trades real money, and there is no test mode. Start with small amounts and an API key with low limits.

Designed for agents

Limits you set

Each key has its own markets, largest order and 24-hour limit. No key can withdraw money, and an agent can’t change its own limits.

Amounts in dollars

Orders are sized in US dollars, with no leverage, on markets with plain names like BTC and TSLA. We work out the size, so a buy never costs more than you asked.

Safe retries

Sending the same request with the same client_order_id never places a second order, so an agent can retry after any timeout.

Answers it can act on

Every error has a hint with a fix and says whether retrying can help. Every order has a short summary to pass on to the user.

What you can do

  • Browse and search markets, from crypto such as BTC and ETH to real-world assets such as TSLA.
  • Place market orders, and limit orders that fill right away at your price or better.
  • Preview an order to see the fill, the fees and the position you’d end up with.
  • Read your positions and close them, in full or in part.
  • Read your balance, fills and withdrawals.
Every position is 1×. You pay the full value of what you buy, and nothing is borrowed.

Next steps

Quickstart

Fund your account, create a key and place your first order.

How orders work

How orders are sized, what each status means, and every field.

Build with AI agents

Give an agent a key with tight limits and let it trade.

API reference

Every endpoint, field and error code.

Under the hood

You fund your account by sending USDC on Arbitrum, and it’s ready to trade within a few minutes. Orders are executed on Hyperliquid, where your balance is held as USDC in a wallet we create for your account, so you don’t need a Hyperliquid account of your own. The fee on each fill includes both Hyperliquid’s fee and ours. To withdraw, you use the account page and sign the withdrawal yourself.